Package jason.infra.components
Class AgentComponent
java.lang.Object
jason.infra.components.AgentComponent
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
ActComponent
,DeliberateComponent
,SenseComponent
public abstract class AgentComponent
extends java.lang.Object
implements java.lang.Runnable
-
Field Summary
Fields Modifier and Type Field Description protected LocalAgArchAsynchronous
ag
protected boolean
inQueue
protected boolean
sleeping
-
Constructor Summary
Constructors Constructor Description AgentComponent(LocalAgArchAsynchronous ag)
-
Method Summary
Modifier and Type Method Description abstract boolean
canSleep()
abstract void
enqueueExecutor(boolean ts)
boolean
isSleeping()
void
sleep()
abstract void
wakeUp()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Runnable
run
-
Field Details
-
ag
-
inQueue
protected boolean inQueue -
sleeping
protected boolean sleeping
-
-
Constructor Details
-
AgentComponent
-
-
Method Details
-
sleep
public void sleep() -
isSleeping
public boolean isSleeping() -
wakeUp
public abstract void wakeUp() -
enqueueExecutor
public abstract void enqueueExecutor(boolean ts) -
canSleep
public abstract boolean canSleep()
-