Class TransitionSystem

java.lang.Object
jason.asSemantics.TransitionSystem
All Implemented Interfaces:
Serializable

public class TransitionSystem extends Object implements Serializable
See Also:
  • Constructor Details

  • Method Details

    • setLogger

      public void setLogger(AgArch arch)
    • setLogger

      public void setLogger(Logger l)
    • addGoalListener

      public void addGoalListener(GoalListener gl)
      adds an object that will be notified about events on goals (creation, suspension, ...)
    • hasGoalListener

      public boolean hasGoalListener()
    • getGoalListeners

      public List<GoalListener> getGoalListeners()
    • removeGoalListener

      public boolean removeGoalListener(GoalListener gl)
    • getPLForIM

      protected PlanLibrary getPLForIM(IntendedMeans im)
    • applyClrInt

      public void applyClrInt(Intention i) throws JasonException
      Throws:
      JasonException
    • updateEvents

      public boolean updateEvents(List<Literal>[] result, Intention focus)
    • updateEvents

      public void updateEvents(Event e)
    • generateGoalDeletion

      public boolean generateGoalDeletion(Intention i, List<Term> failAnnots, Term reason) throws JasonException
      generate a failure event for an intention
      Throws:
      JasonException
    • findEventForFailure

      public Event findEventForFailure(Intention i, Trigger tevent)
    • checkHardDeadline

      protected void checkHardDeadline(Event evt)
    • canSleep

      public boolean canSleep()
    • canSleepSense

      public boolean canSleepSense()
    • canSleepDeliberate

      public boolean canSleepDeliberate()
    • canSleepAct

      public boolean canSleepAct()
    • runAtBeginOfNextCycle

      public void runAtBeginOfNextCycle(RunnableSerializable r)
      Schedule a task to be executed in the beginning of the next reasoning cycle. It is used mostly to change the C only by the TS thread (e.g. by .wait)
    • reasoningCycle

      public void reasoningCycle()
    • sense

      public void sense()
    • deliberate

      public void deliberate()
    • act

      public void act()
    • getAg

      public Agent getAg()
    • getC

      public Circumstance getC()
    • getSettings

      public Settings getSettings()
    • setAgArch

      public void setAgArch(AgArch arch)
    • getAgArch

      public AgArch getAgArch()
    • getUserAgArch

      @Deprecated public AgArch getUserAgArch()
      Deprecated.
      use getAgArch
    • getLogger

      public Logger getLogger()
    • toString

      public String toString()
      Overrides:
      toString in class Object