Package jason.asSemantics
Class Circumstance
java.lang.Object
jason.asSemantics.Circumstance
- All Implemented Interfaces:
ToDOM
,Serializable
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAchvGoal
(Literal l, Intention i) void
Eventsvoid
Listenersvoid
addExternalEv
(Trigger trig) void
void
void
void
addPendingEvent
(String id, Term reason, Event e) void
addPendingIntention
(String id, Intention i) void
addPendingIntention
(String id, Term reason, Intention i, boolean suspend) void
addRunningIntention
(Intention intention) void
void
clearEvents
(boolean onlyGoals) void
void
void
void
clone()
clone E, I, MB, PA, PI, FA, and AIvoid
create()
creates new collections for E, I, MB, PA, PI, and FAvoid
dropIntention
(Intention del) Drops an intention based on the intention id considers running, pending, ...boolean
removes the intention i from PA and notify listeners that the intention was droppedboolean
removes the intention i from PI and notify listeners that the intention was droppedboolean
removes and produces events to signal that the intention was droppedactionsgets all intentions (running, pending, suspended, ...)get the agent circumstance as XMLget the queue of events (which does not include the atomic event)get the all events (which include the atomic event, if it exists)Messagesint
pending actionpending eventspending intentionsget the queue of intention (which does not include atomic intention)get all running/active intentions (which include the atomic intention, if it exists)boolean
boolean
hasEvent()
boolean
returns true if the agent has a FA to process (actions from a suspended intention are not considered)boolean
boolean
boolean
hasMsg()
boolean
boolean
boolean
boolean
boolean
void
insertMetaEvent
(Event ev) boolean
remove and returns the event with atomic intention, null if noneboolean
removeEvent
(Event ev) void
void
removeEvents
(Trigger te, Unifier un) removePendingAction
(int intentionId) removePendingEvent
(String pendingId) void
removePendingEvents
(Trigger te, Unifier un) removePendingIntention
(int intentionId) removePendingIntention
(String pendingId) boolean
remove intention from set Ivoid
reset()
set null for A, RP, AP, SE, SO, and SIvoid
resetAct()
void
void
void
void
resumeIntention
(Intention intention, Term reason) add the intention back to I, and also notify meta listeners that the goals are resumedvoid
void
protected void
void
toString()
-
Field Details
-
A
-
RP
-
AP
-
SE
-
SO
-
SI
-
syncApPlanSense
-
-
Constructor Details
-
Circumstance
public Circumstance()
-
-
Method Details
-
hasIntentionWithGoalCondition
public boolean hasIntentionWithGoalCondition() -
resetIntentionsWithGoalCondition
public void resetIntentionsWithGoalCondition() -
setTS
-
create
public void create()creates new collections for E, I, MB, PA, PI, and FA -
reset
public void reset()set null for A, RP, AP, SE, SO, and SI -
resetSense
public void resetSense() -
resetDeliberate
public void resetDeliberate() -
resetAct
public void resetAct() -
addAchvGoal
-
addExternalEv
-
addEvent
Events -
insertMetaEvent
-
removeEvent
-
removeEvents
-
clearEvents
public void clearEvents() -
clearEvents
public void clearEvents(boolean onlyGoals) -
getEvents
get the queue of events (which does not include the atomic event) -
getEventsPlusAtomic
get the all events (which include the atomic event, if it exists) -
hasEvent
public boolean hasEvent() -
getAtomicEvent
-
removeAtomicEvent
remove and returns the event with atomic intention, null if none -
addEventListener
Listeners -
removeEventListener
-
hasListener
public boolean hasListener() -
getListeners
-
getMailBox
Messages -
addMsg
-
hasMsg
public boolean hasMsg() -
getRunningIntentions
get the queue of intention (which does not include atomic intention) -
getRunningIntentionsPlusAtomic
get all running/active intentions (which include the atomic intention, if it exists) -
getNbRunningIntentions
public int getNbRunningIntentions() -
hasRunningIntention
public boolean hasRunningIntention() -
hasRunningIntention
-
addRunningIntention
-
resumeIntention
add the intention back to I, and also notify meta listeners that the goals are resumed -
removeRunningIntention
remove intention from set I -
dropRunningIntention
removes and produces events to signal that the intention was dropped -
clearRunningIntentions
public void clearRunningIntentions() -
setAtomicIntention
-
removeAtomicIntention
-
hasAtomicIntention
public boolean hasAtomicIntention() -
isAtomicIntentionSuspended
public boolean isAtomicIntentionSuspended() -
getPendingIntentions
pending intentions -
getPendingIntentionKey
-
hasPendingIntention
public boolean hasPendingIntention() -
clearPendingIntentions
public void clearPendingIntentions() -
addPendingIntention
-
addPendingIntention
-
removePendingIntention
-
removePendingIntention
-
dropPendingIntention
removes the intention i from PI and notify listeners that the intention was dropped -
getPendingEvents
pending events -
hasPendingEvent
public boolean hasPendingEvent() -
clearPendingEvents
public void clearPendingEvents() -
addPendingEvent
-
removePendingEvent
-
removePendingEvents
-
getAction
actions -
setAction
-
getApplicablePlans
-
hasFeedbackAction
public boolean hasFeedbackAction()returns true if the agent has a FA to process (actions from a suspended intention are not considered) -
getFALock
-
getFeedbackActions
-
addFeedbackAction
-
getPendingActions
pending action -
addPendingAction
-
clearPendingActions
public void clearPendingActions() -
hasPendingAction
public boolean hasPendingAction() -
removePendingAction
-
dropPendingAction
removes the intention i from PA and notify listeners that the intention was dropped -
getAllIntentions
gets all intentions (running, pending, suspended, ...) -
dropIntention
Drops an intention based on the intention id considers running, pending, ... intentions -
getRelevantPlans
-
getSelectedEvent
-
getSelectedIntention
-
getSelectedOption
-
setLastDeed
-
getLastDeed
-
clone
clone E, I, MB, PA, PI, FA, and AI -
getAsDOM
get the agent circumstance as XML -
toString
-