Maintains a set of GoalMap for multiple roadmap/task pairs.
More...
#include <GoalTracker.h>
|
|
| | GoalTrackerType (MPLibrary *const _library) |
| |
| | ~GoalTrackerType () |
| |
|
| template<typename Roadmap , typename Task > |
| const VIDSet & | GetStartVIDs (Roadmap *const _roadmap, const Task *const _task) const |
| |
| const VIDSet & | GetStartVIDs () const |
| |
| template<typename Roadmap , typename Task > |
| const VIDSet & | GetGoalVIDs (Roadmap *const _roadmap, const Task *const _task, const size_t _index) const |
| |
| const VIDSet & | GetGoalVIDs (const size_t _index) const |
| |
| template<typename Roadmap , typename Task > |
| size_t | UnreachedGoalCount (Roadmap *const _roadmap, const Task *const _task) const |
| |
| size_t | UnreachedGoalCount () const |
| |
| template<typename Roadmap , typename Task > |
| std::vector< size_t > | UnreachedGoalIndexes (Roadmap *const _roadmap, const Task *const _task) const |
| |
| std::vector< size_t > | UnreachedGoalIndexes () const |
| |
| void | AddMap (RoadmapType *const _roadmap, const MPTask *const _task) |
| |
| void | AddMap (GroupRoadmapType *const _roadmap, const GroupTask *const _task) |
| |
| bool | IsMap (RoadmapType *const _roadmap, const MPTask *const _task) const |
| |
| bool | IsMap (GroupRoadmapType *const _roadmap, const GroupTask *const _task) const |
| |
| void | Clear () |
| | Clear all goal maps. More...
|
| |
Maintains a set of GoalMap for multiple roadmap/task pairs.
◆ GroupRoadmapType
◆ RoadmapType
◆ VID
◆ VIDSet
◆ GoalTrackerType()
| GoalTrackerType::GoalTrackerType |
( |
MPLibrary *const |
_library | ) |
|
Construct a goal tracker, which must be owned by a specific MPLibrary.
- Parameters
-
| _library | The owning library. |
◆ ~GoalTrackerType()
| GoalTrackerType::~GoalTrackerType |
( |
| ) |
|
◆ AddMap() [1/2]
Add a goal map for a group roadmap/task pair.
- Parameters
-
| _roadmap | The group roadmap. |
| _task | The task. |
◆ AddMap() [2/2]
| void GoalTrackerType::AddMap |
( |
RoadmapType *const |
_roadmap, |
|
|
const MPTask *const |
_task |
|
) |
| |
Add a goal map for a roadmap/task pair.
- Parameters
-
| _roadmap | The roadmap. |
| _task | The task. |
◆ Clear()
| void GoalTrackerType::Clear |
( |
| ) |
|
◆ GetGoalVIDs() [1/2]
This version uses the current roadmap/task. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Exceptions
-
| If | both a group and individual 'current' task are set. |
◆ GetGoalVIDs() [2/2]
template<typename Roadmap , typename Task >
| const GoalTrackerType::VIDSet & GoalTrackerType::GetGoalVIDs |
( |
Roadmap *const |
_roadmap, |
|
|
const Task *const |
_task, |
|
|
const size_t |
_index |
|
) |
| const |
Find the VIDs which satisfy a particular goal constraint for a roadmap/task pair.
- Parameters
-
| _roadmap | The roadmap. |
| _task | The task. |
| _index | The goal constraint index. |
- Returns
- The set of VIDs from _roadmap which satisfy goal constraint _index from task _task.
◆ GetStartVIDs() [1/2]
This version uses the current roadmap/task. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Exceptions
-
| If | both a group and individual 'current' task are set. |
◆ GetStartVIDs() [2/2]
template<typename Roadmap , typename Task >
| const GoalTrackerType::VIDSet & GoalTrackerType::GetStartVIDs |
( |
Roadmap *const |
_roadmap, |
|
|
const Task *const |
_task |
|
) |
| const |
Find the VIDs which satisfy the start constraint for a roadmap/task pair.
- Parameters
-
| _roadmap | The roadmap. |
| _task | The task. |
- Returns
- The set of VIDs from _roadmap which satisfy the start constraints for _task.
◆ IsMap() [1/2]
Check for a goal map for a group roadmap/task pair.
- Parameters
-
| _roadmap | The group roadmap. |
| _task | The task. |
◆ IsMap() [2/2]
| bool GoalTrackerType::IsMap |
( |
RoadmapType *const |
_roadmap, |
|
|
const MPTask *const |
_task |
|
) |
| const |
Check for a goal map for a roadmap/task pair.
- Parameters
-
| _roadmap | The roadmap. |
| _task | The task. |
◆ UnreachedGoalCount() [1/2]
| size_t GoalTrackerType::UnreachedGoalCount |
( |
| ) |
const |
This version uses the current roadmap/task. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Exceptions
-
| If | both a group and individual 'current' task are set. |
◆ UnreachedGoalCount() [2/2]
template<typename Roadmap , typename Task >
| size_t GoalTrackerType::UnreachedGoalCount |
( |
Roadmap *const |
_roadmap, |
|
|
const Task *const |
_task |
|
) |
| const |
Check the number of unreached goals for a roadmap/task.
- Parameters
-
| _roadmap | The roadmap. |
| _task | The task. |
- Returns
- The number of unreached goals.
◆ UnreachedGoalIndexes() [1/2]
| std::vector< size_t > GoalTrackerType::UnreachedGoalIndexes |
( |
| ) |
const |
This version uses the current roadmap/task. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Exceptions
-
| If | both a group and individual 'current' task are set. |
◆ UnreachedGoalIndexes() [2/2]
template<typename Roadmap , typename Task >
| std::vector< size_t > GoalTrackerType::UnreachedGoalIndexes |
( |
Roadmap *const |
_roadmap, |
|
|
const Task *const |
_task |
|
) |
| const |
Get the indexes of the goal constraints which have not yet been satisfied.
- Parameters
-
| _roadmap | The roadmap. |
| _task | The task. |
- Returns
- The unreached goal indexes.
The documentation for this class was generated from the following files:
- /opt/actions-runner/_work/open-ppl/open-ppl/src/MPLibrary/GoalTracker.h
- /opt/actions-runner/_work/open-ppl/open-ppl/src/MPLibrary/GoalTracker.cpp