public class Actuator extends EventHandler implements Acting
| Modifier and Type | Class and Description |
|---|---|
private class |
Actuator.ActionScheduler
The Class ActionScheduler.
|
private class |
Actuator.NeedActionBehaviour
The Class NeedActionBehaviour.
|
| Modifier and Type | Field and Description |
|---|---|
protected Constants.AC_STATE |
actuatorState
The actuator state.
|
protected boolean |
automaticAction
The automatic action.
|
(package private) VirtualClockHelper |
clock
The clock.
|
(package private) Actuator |
me
The me.
|
(package private) jade.core.behaviours.WakerBehaviour |
needActionBehaviour
The need action behaviour.
|
protected long |
needActionTime
The need action time.
|
protected long |
nextStateChange
The next state change.
|
protected long |
sendLag
The send lag.
|
private jade.core.behaviours.ThreadedBehaviourFactory |
tbf
The tbf.
|
commType, eventExchange, eventType, frameTime, happeningFrame, listeners, myComm, myMemory, period, relative_position, sendDeadline, startTime, status, workingFrameparameters| Constructor and Description |
|---|
Actuator() |
| Modifier and Type | Method and Description |
|---|---|
void |
act()
Act.
|
void |
setAutomaticAction(boolean automaticAction)
Sets the automatic action.
|
protected void |
setEventFrequency()
Sets the event frequency.
|
protected void |
setNeedActionTime(long needActionTime)
Sets the need action time.
|
protected void |
setSendLag(long sendLag)
Sets the send lag.
|
boolean |
start()
Framework-implemented initialization method.
|
boolean |
stop()
Framework-implemented finalization method.
|
confirmDeregistration, confirmRegistration, deregister, eventHandlerDeregistered, eventHandlerRegistered, getEventType, getRelativePosition, getStatus, process, register, registerListener, setEventType, setRelativePositionaddParameter, addParameters, configure, finit, getAddress, getAgent, getComponentName, getComponentType, getParameter, getParameter, getParameters, getState, getType, init, parameterUpdate, processCommand, receiveCommand, sendCommand, setAgent, setComponentName, setParameters, setState, setTypeprivate jade.core.behaviours.ThreadedBehaviourFactory tbf
VirtualClockHelper clock
Actuator me
jade.core.behaviours.WakerBehaviour needActionBehaviour
protected Constants.AC_STATE actuatorState
protected long sendLag
protected long needActionTime
protected long nextStateChange
protected boolean automaticAction
public final boolean start()
LifeCyclestart in interface LifeCyclestart in class EventHandlerpublic final boolean stop()
LifeCyclestop in interface LifeCyclestop in class EventHandlerprotected void setNeedActionTime(long needActionTime)
needActionTime - the new need action timeprotected void setSendLag(long sendLag)
sendLag - the new send lagpublic void setAutomaticAction(boolean automaticAction)
automaticAction - the new automatic actionprotected void setEventFrequency()