Package jason.infra.local
Class RunLocalMAS.LocalAgArchSynchronousScheduled
java.lang.Object
jason.architecture.AgArch
jason.infra.local.LocalAgArch
jason.infra.local.RunLocalMAS.LocalAgArchSynchronousScheduled
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AgArch>
,java.lang.Runnable
- Enclosing class:
- RunLocalMAS
protected final class RunLocalMAS.LocalAgArchSynchronousScheduled extends LocalAgArch
an agent architecture for the infra based on thread pool
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description private int
currentStep
private boolean
runWakeAfterTS
private static long
serialVersionUID
Fields inherited from class jason.infra.local.LocalAgArch
infraEnv, logger, MAX_SLEEP
-
Constructor Summary
Constructors Modifier Constructor Description protected
LocalAgArchSynchronousScheduled()
-
Method Summary
Methods inherited from class jason.infra.local.LocalAgArch
act, addMsgListener, broadcast, canSleep, checkMail, createArchs, createArchs, getAgName, getConf, getControlInfraTier, getCycles, getCyclesAct, getCyclesDeliberate, getCyclesSense, getEnvInfraTier, getLogger, getMBox, getRuntimeServices, getStatus, getThread, getUserAgArch, informCycleFinished, isRunning, perceive, reasoningCycle, receiveMsg, receiveSyncSignal, removeMsgListener, sendMsg, setAgName, setConf, setControlInfraTier, setCycles, setCyclesAct, setCyclesDeliberate, setCyclesSense, setEnvInfraTier, setLogger, setMASRunner, setThread, startThread, stopAg, wakeUpAct, wakeUpDeliberate, wakeUpSense
Methods inherited from class jason.architecture.AgArch
actionExecuted, compareTo, createCustomArchs, equals, getAgArchClassesChain, getCycleNumber, getFirstAgArch, getNextAgArch, getTS, hashCode, incCycleNumber, init, insertAgArch, reasoningCycleFinished, reasoningCycleStarting, setCycleNumber, setTS, stop, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
runWakeAfterTS
private volatile boolean runWakeAfterTS -
currentStep
private int currentStep
-
-
Constructor Details
-
LocalAgArchSynchronousScheduled
protected LocalAgArchSynchronousScheduled()
-
-
Method Details
-
sleep
public void sleep()- Overrides:
sleep
in classLocalAgArch
-
wake
public void wake()Description copied from class:AgArch
Puts the agent in sleep.- Overrides:
wake
in classLocalAgArch
-
sense
public void sense()- Overrides:
sense
in classLocalAgArch
-
deliberate
public void deliberate()- Overrides:
deliberate
in classLocalAgArch
-
act
public void act()Description copied from class:LocalAgArch
the act as step of reasoning cycle- Overrides:
act
in classLocalAgArch
-
run
public void run()- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classLocalAgArch
-