public class PP_SingleFilterReasoning extends Reasoning
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
PP_SingleFilterReasoning.FilterType
The Enum FilterType.
|
(package private) static class |
PP_SingleFilterReasoning.ZoneMode
The Enum ZoneMode.
|
| Modifier and Type | Field and Description |
|---|---|
private Sensor |
antenna
The antenna.
|
private Memory |
antennaMemory
The antenna memory.
|
(package private) int |
chunk_size
The chunk_size.
|
(package private) static int |
currentFreq
The current freq.
|
(package private) Sensor |
ear
The ear.
|
(package private) Memory |
earMemory
The ear memory.
|
(package private) Sensor |
eyes
The eyes.
|
(package private) Memory |
eyesMemory
The eyes memory.
|
(package private) static PP_SingleFilterReasoning.FilterType |
filterType
The filter type.
|
(package private) double |
frame_duration
The frame_duration.
|
(package private) Memory |
internalMemory
The internal memory.
|
(package private) Actuator |
legs
The legs.
|
(package private) Memory |
legsMemory
The legs memory.
|
(package private) Actuator |
mouth
The mouth.
|
(package private) Memory |
mouthMemory
The mouth memory.
|
(package private) static double |
rez
The rez.
|
(package private) float |
sampleRate
The sample rate.
|
(package private) double |
start_time
The start_time.
|
(package private) PP_SingleFilterReasoning.ZoneMode |
zoneMode
The zone mode.
|
parameters| Constructor and Description |
|---|
PP_SingleFilterReasoning() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
eventHandlerRegistered(EventHandler evtHdl)
Chamado no momento em que um novo EventHandler é registrado no Agente Musical.
|
private double |
geRez(double valY)
Ge rez.
|
private int |
getFreq(double valX)
Gets the freq.
|
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.
|
void |
processCommand(Command cmd)
An user-implemented method to process a received command.
|
eventHandlerDeregistered, needAction, setWakeUp, start, stopaddParameter, addParameters, configure, finit, getAddress, getAgent, getComponentName, getComponentType, getParameter, getParameter, getParameters, getState, getType, parameterUpdate, receiveCommand, sendCommand, setAgent, setComponentName, setParameters, setState, setTypeActuator mouth
Memory mouthMemory
Sensor ear
Memory earMemory
int chunk_size
float sampleRate
double frame_duration
private Sensor antenna
private Memory antennaMemory
double start_time
Memory internalMemory
Actuator legs
Memory legsMemory
Sensor eyes
Memory eyesMemory
PP_SingleFilterReasoning.ZoneMode zoneMode
static int currentFreq
static double rez
static PP_SingleFilterReasoning.FilterType filterType
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)
Reasoningprivate double geRez(double valY)
valY - the val yprivate int getFreq(double valX)
valX - the val xpublic void needAction(Actuator sourceActuator, double instant, double duration)
ReasoningneedAction in class ReasoningsourceActuator - the source actuatorinstant - the instantduration - the durationpublic void processCommand(Command cmd)
RouterClientprocessCommand in interface RouterClientprocessCommand in class MusicalAgentComponentcmd - the cmd