public class PP_PeakReasoning extends Reasoning
| Modifier and Type | Field and Description |
|---|---|
private Sensor |
antenna
The antenna.
|
private Memory |
antennaMemory
The antenna memory.
|
private boolean |
checkPeak
The check peak.
|
(package private) int |
chunk_size
The chunk_size.
|
(package private) double |
frame_duration
The frame_duration.
|
private double |
MAX_PEAK
The max peak.
|
private Actuator |
messenger
The messenger.
|
private Memory |
messengerMemory
The messenger memory.
|
private double |
MIN_PEAK
The min peak.
|
(package private) Actuator |
mouth
The mouth.
|
(package private) Memory |
mouthMemory
The mouth memory.
|
(package private) float |
sampleRate
The sample rate.
|
parameters| Constructor and Description |
|---|
PP_PeakReasoning() |
| 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).
|
void |
process()
Método de processamento do raciocínio.
|
eventHandlerDeregistered, needAction, setWakeUp, start, stopaddParameter, addParameters, configure, finit, getAddress, getAgent, getComponentName, getComponentType, getParameter, getParameter, getParameters, getState, getType, parameterUpdate, processCommand, receiveCommand, sendCommand, setAgent, setComponentName, setParameters, setState, setTypeActuator mouth
Memory mouthMemory
int chunk_size
float sampleRate
double frame_duration
private Sensor antenna
private Memory antennaMemory
private Actuator messenger
private Memory messengerMemory
private double MIN_PEAK
private double MAX_PEAK
private boolean checkPeak
public boolean init()
LifeCycleinit in interface LifeCycleinit in class MusicalAgentComponentprotected void eventHandlerRegistered(EventHandler evtHdl)
ReasoningeventHandlerRegistered in class ReasoningevtHdl - the evt hdlpublic void newSense(Sensor sourceSensor, double instant, double duration)
Reasoningpublic void needAction(Actuator sourceActuator, double instant, double duration)
ReasoningneedAction in class ReasoningsourceActuator - the source actuatorinstant - the instantduration - the duration