public class Reasoning extends MusicalAgentComponent
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
Reasoning.ReasonBatch
The Class ReasonBatch.
|
private class |
Reasoning.ReasonCyclic
Processamento cíclico do raciocínio.
|
(package private) static class |
Reasoning.ReasoningMode
The Enum ReasoningMode.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) VirtualClockHelper |
clock
The clock.
|
(package private) jade.core.behaviours.Behaviour |
cyclicBehaviour
The cyclic behaviour.
|
private Reasoning.ReasoningMode |
reasoningMode
The reasoning mode.
|
private long |
reasoningPeriod
The reasoning period.
|
(package private) jade.core.behaviours.ThreadedBehaviourFactory |
tbf
The tbf.
|
parameters| Constructor and Description |
|---|
Reasoning() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
eventHandlerDeregistered(EventHandler evtHdl)
Chamado no momento em que um novo EventHandler é registrado no Agente Musical.
|
protected void |
eventHandlerRegistered(EventHandler evtHdl)
Chamado no momento em que um novo EventHandler é registrado no Agente Musical.
|
void |
needAction(Actuator sourceActuator,
double instant,
double duration)
Chamado no caso de eventos frequentes, quando existe a necessidade de uma ação.
|
void |
needAction(Actuator sourceActuator,
long workingFrame)
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).
|
void |
process()
Método de processamento do raciocínio.
|
void |
setWakeUp(long time)
Sets the wake up.
|
boolean |
start()
Framework-implemented initialization method.
|
boolean |
stop()
Framework-implemented finalization method.
|
addParameter, addParameters, configure, finit, getAddress, getAgent, getComponentName, getComponentType, getParameter, getParameter, getParameters, getState, getType, init, parameterUpdate, processCommand, receiveCommand, sendCommand, setAgent, setComponentName, setParameters, setState, setTypeprivate Reasoning.ReasoningMode reasoningMode
private long reasoningPeriod
jade.core.behaviours.ThreadedBehaviourFactory tbf
jade.core.behaviours.Behaviour cyclicBehaviour
VirtualClockHelper clock
public final boolean start()
LifeCyclepublic final boolean stop()
LifeCyclepublic void setWakeUp(long time)
time - the new wake upprotected void eventHandlerRegistered(EventHandler evtHdl) throws java.lang.Exception
evtHdl - the evt hdljava.lang.Exception - the exceptionprotected void eventHandlerDeregistered(EventHandler evtHdl) throws java.lang.Exception
evtHdl - the evt hdljava.lang.Exception - the exceptionpublic void newSense(Sensor sourceSensor, double instant, double duration) throws java.lang.Exception
sourceSensor - the source sensorinstant - the instantduration - the durationjava.lang.Exception - the exceptionpublic void needAction(Actuator sourceActuator, long workingFrame) throws java.lang.Exception
sourceActuator - the source actuatorworkingFrame - the working framejava.lang.Exception - the exceptionpublic void needAction(Actuator sourceActuator, double instant, double duration) throws java.lang.Exception
sourceActuator - the source actuatorinstant - the instantduration - the durationjava.lang.Exception - the exceptionpublic void process()
throws java.lang.Exception
java.lang.Exception - the exception