Class GoalInfo


public class GoalInfo extends AbstractBDIInfo
Transferable information about a goal.
  • Field Details

    • kind

      protected String kind
      The goal kind (e.g. achieve).
    • lifecyclestate

      protected String lifecyclestate
      The life cycle state.
    • processingstate

      protected String processingstate
      The processing state.
    • paraminfos

      protected List<ParameterInfo> paraminfos
      The parameter (array of strings parameters).
  • Constructor Details

    • GoalInfo

      public GoalInfo()
      Create a new goal info.
  • Method Details

    • getKind

      public String getKind()
      Create a new goal info. / public GoalInfo(Object id, String kind, String type, String lifecyclestate, String processingstate) { super(id, type); this.kind = kind; this.lifecyclestate = lifecyclestate; this.processingstate = processingstate; } //--------- methods --------- /** Return the kind.
    • setKind

      public GoalInfo setKind(String kind)
      Set the kind.
    • getLifecycleState

      public String getLifecycleState()
      Return the life cycle state.
    • setLifecycleState

      public GoalInfo setLifecycleState(String lifecyclestate)
      Set the life cycle state.
    • getProcessingState

      public String getProcessingState()
      Return the processing state.
    • setProcessingState

      public GoalInfo setProcessingState(String processingstate)
      Set the processing state.
    • getParameterInfos

      public ParameterInfo[] getParameterInfos()
      Returns:
      the paraminfos
    • setParameterInfos

      public GoalInfo setParameterInfos(ParameterInfo[] paraminfos)
      Set the parameters
      Parameters:
      paraminfos - the paraminfos to set
    • addParameterInfo

      public GoalInfo addParameterInfo(ParameterInfo paraminfo)
      Add a parameter.
    • toString

      public String toString()
      Get the string representation.
      Overrides:
      toString in class Object
    • createGoalInfo

      public static GoalInfo createGoalInfo(RGoal goal)
      Create an info object for a goal.