public class TransitionSystem
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TransitionSystem.State |
Constructor and Description |
---|
TransitionSystem(Agent a,
Circumstance c,
Settings s,
AgArch ar) |
Modifier and Type | Method and Description |
---|---|
void |
addGoalListener(GoalListener gl)
adds an object that will be notified about events on goals (creation, suspension, ...)
|
java.util.List<Option> |
applicablePlans(java.util.List<Option> rp) |
void |
applyClrInt(Intention i) |
boolean |
canSleep() |
protected void |
checkHardDeadline(Event evt) |
Event |
findEventForFailure(Intention i,
Trigger tevent) |
boolean |
generateGoalDeletion(Intention i,
java.util.List<Term> failAnnots)
generate a failure event for an intention
|
Agent |
getAg() |
Circumstance |
getC() |
java.util.List<GoalListener> |
getGoalListeners() |
java.util.logging.Logger |
getLogger() |
Settings |
getSettings() |
TransitionSystem.State |
getStep() |
AgArch |
getUserAgArch() |
boolean |
hasGoalListener() |
boolean |
reasoningCycle() |
java.util.List<Option> |
relevantPlans(Trigger teP) |
boolean |
removeGoalListener(GoalListener gl) |
void |
runAtBeginOfNextCycle(java.lang.Runnable r)
Schedule a task to be executed in the begin of the next reasoning cycle.
|
void |
setAgArch(AgArch arch) |
void |
setLogger(AgArch arch) |
void |
setLogger(java.util.logging.Logger l) |
java.lang.String |
toString() |
void |
updateEvents(Event e) |
void |
updateEvents(java.util.List<Literal>[] result,
Intention focus) |
public TransitionSystem(Agent a, Circumstance c, Settings s, AgArch ar)
public void setLogger(AgArch arch)
public void setLogger(java.util.logging.Logger l)
public void addGoalListener(GoalListener gl)
public boolean hasGoalListener()
public java.util.List<GoalListener> getGoalListeners()
public boolean removeGoalListener(GoalListener gl)
public void applyClrInt(Intention i) throws JasonException
JasonException
public java.util.List<Option> relevantPlans(Trigger teP) throws JasonException
JasonException
public java.util.List<Option> applicablePlans(java.util.List<Option> rp) throws JasonException
JasonException
public void updateEvents(Event e)
public boolean generateGoalDeletion(Intention i, java.util.List<Term> failAnnots) throws JasonException
JasonException
protected void checkHardDeadline(Event evt)
public boolean canSleep()
public void runAtBeginOfNextCycle(java.lang.Runnable r)
public boolean reasoningCycle()
public Agent getAg()
public Circumstance getC()
public TransitionSystem.State getStep()
public Settings getSettings()
public void setAgArch(AgArch arch)
public AgArch getUserAgArch()
public java.util.logging.Logger getLogger()
public java.lang.String toString()
toString
in class java.lang.Object