Modifier and Type | Field and Description |
---|---|
private double |
activityTime
The time the activity has to be done.
|
private Activity |
goalActivity
The goal activity.
|
private GoalState |
goalState
The goal state.
|
private double |
time
The time.
|
private Activity |
timeActivity
The time activity.
|
Constructor and Description |
---|
Goal(Activity activity,
Activity timeActivity)
Creates a goal based on another activity.
|
Goal(Activity activity,
double time)
Creates a time based goal.
|
Modifier and Type | Method and Description |
---|---|
Activity |
getGoalActivity()
Gets the goal activity.
|
GoalState |
getGoalState()
Gets the goal state.
|
void |
update(int timeStep)
Updates the updatable element.
|
private Activity goalActivity
private Activity timeActivity
private double activityTime
private double time
private GoalState goalState
public Goal(Activity activity, Activity timeActivity)
activity
- The activity.timeActivity
- The activity it needs to finish before.public Goal(Activity activity, double time)
activity
- The activity.time
- The time.