execute method

  1. @override
void execute()
override

Executed in each simulation step.

Implementation

@override
void execute() {
	activateIfInactive();
	final subgoalStatus = executeSubgoals();

	if ( subgoalStatus == GoalStatus.completed || subgoalStatus == GoalStatus.failed ) {
		status = GoalStatus.inactive;
	}
}