public class DummyReasoning extends Reasoning
| Modifier and Type | Field and Description |
|---|---|
(package private) Actuator |
actuator
The actuator.
|
(package private) Memory |
actuatorMemory
The actuator memory.
|
(package private) Sensor |
sensor
The sensor.
|
(package private) Memory |
sensorMemory
The sensor memory.
|
parameters| Constructor and Description |
|---|
DummyReasoning() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
eventHandlerRegistered(EventHandler evtHdl)
Chamado no momento em que um novo EventHandler é registrado no Agente Musical.
|
boolean |
init()
User-implemented initialization method, called by start().
|
void |
needAction(Actuator sourceActuator,
double instant,
double duration)
Chamado no caso de eventos frequentes, quando existe a necessidade de uma ação.
|
void |
newSense(Sensor sourceSensor,
double instant,
double duration)
Chamado no momento que o Agente Musical recebe um novo evento (e o raciocínio está registrado no Sensor).
|
eventHandlerDeregistered, needAction, process, setWakeUp, start, stopaddParameter, addParameters, configure, finit, getAddress, getAgent, getComponentName, getComponentType, getParameter, getParameter, getParameters, getState, getType, parameterUpdate, processCommand, receiveCommand, sendCommand, setAgent, setComponentName, setParameters, setState, setTypeActuator actuator
Memory actuatorMemory
Sensor sensor
Memory sensorMemory
public boolean init()
LifeCycleinit in interface LifeCycleinit in class MusicalAgentComponentprotected void eventHandlerRegistered(EventHandler evtHdl) throws java.lang.Exception
ReasoningeventHandlerRegistered in class ReasoningevtHdl - the evt hdljava.lang.Exception - the exceptionpublic void newSense(Sensor sourceSensor, double instant, double duration) throws java.lang.Exception
Reasoningpublic void needAction(Actuator sourceActuator, double instant, double duration) throws java.lang.Exception
ReasoningneedAction in class ReasoningsourceActuator - the source actuatorinstant - the instantduration - the durationjava.lang.Exception - the exception