clarion.acs.gs
Interface GoalStructure

All Known Implementing Classes:
GoalList, GoalStack

public interface GoalStructure

This class provides an interface of goal structure. It is the base class for goal structure and the concrete goal structure.


Method Summary
 boolean actionNoGoal()
          'no goal' action.
 boolean actionReset(int idx)
          'reset' action.
 boolean actionSet(int idx)
          'set' action.
 int getActiveGoal()
          Returns the currently active goal in terms of index.
 GoalChunk getActiveItem()
          Returns the currently active goal item in terms of a chunk.
 int getSize()
          Returns the number of goal items.
 void goalFinished(boolean popFlag)
          routine when the currently active goal is finished.
 boolean isEmpty()
          Returns if the goal structure is empty or not.
 void updateState(double[] state)
          Updates the goal structure with current state.
 

Method Detail

isEmpty

public boolean isEmpty()
Returns if the goal structure is empty or not.


getSize

public int getSize()
Returns the number of goal items.


getActiveGoal

public int getActiveGoal()
Returns the currently active goal in terms of index.


getActiveItem

public GoalChunk getActiveItem()
Returns the currently active goal item in terms of a chunk.


actionSet

public boolean actionSet(int idx)
'set' action.


actionReset

public boolean actionReset(int idx)
'reset' action.


actionNoGoal

public boolean actionNoGoal()
'no goal' action.


goalFinished

public void goalFinished(boolean popFlag)
routine when the currently active goal is finished.


updateState

public void updateState(double[] state)
Updates the goal structure with current state.