Symphony 1.0
|
#include <task_scheduler.h>
Public Member Functions | |
TaskScheduler () | |
Represents the task scheduler problem. This class defines the initial state, goal test, actions, and heuristics for the task scheduler problem. The problem is to complete a set of tasks with different priorities and deadlines. The goal is to complete all tasks. | |
~TaskScheduler () | |
bool | goal_test (State *state) override |
Tests if a given state satisfies the goal condition. | |
std::vector< std::shared_ptr< Action > > | actions (std::shared_ptr< State > state) override |
Retrieves the set of actions applicable to a given state. | |
double | heuristic (State *state) override |
Computes a heuristic estimate for a given state. | |
Public Member Functions inherited from Problem | |
Problem () | |
Constructor for the Problem class. | |
virtual | ~Problem () |
Virtual destructor for the Problem class. | |
virtual State * | initial_state () |
Retrieves the initial state of the problem. | |
Additional Inherited Members | |
Public Attributes inherited from Problem | |
State * | initial_state_ |
Pointer to the initial state of the problem. | |
Definition at line 53 of file task_scheduler.h.
|
inline |
Represents the task scheduler problem. This class defines the initial state, goal test, actions, and heuristics for the task scheduler problem. The problem is to complete a set of tasks with different priorities and deadlines. The goal is to complete all tasks.
Definition at line 60 of file task_scheduler.h.
References Problem::initial_state_.
|
inline |
Definition at line 63 of file task_scheduler.h.
|
inlineoverridevirtual |
Retrieves the set of actions applicable to a given state.
This method must be implemented by the user to define the available actions for a specific state.
state | The current state. |
Implements Problem.
Definition at line 69 of file task_scheduler.h.
References actions().
Referenced by actions().
|
inlineoverridevirtual |
Tests if a given state satisfies the goal condition.
This method must be implemented by the user to define the goal state criteria.
state | The state to test. |
Implements Problem.
Definition at line 65 of file task_scheduler.h.
References TaskSchedulerState::tasks.
|
inlineoverridevirtual |
Computes a heuristic estimate for a given state.
This method must be implemented by the user to define a heuristic function for the problem.
state | The state for which to compute the heuristic. |
Implements Problem.
Definition at line 89 of file task_scheduler.h.