public class PP_QuadrantReasoning extends Reasoning
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
PP_QuadrantReasoning.WorldZone
The Enum WorldZone.
|
(package private) static class |
PP_QuadrantReasoning.ZoneMode
The Enum ZoneMode.
|
| Modifier and Type | Field and Description |
|---|---|
private Vector |
actual_pos
The actual_pos.
|
private Sensor |
antenna
The antenna.
|
private Memory |
antennaMemory
The antenna memory.
|
java.lang.String[] |
audioFileList
The audio file list.
|
(package private) int |
chunk_size
The chunk_size.
|
private int |
cross_width
The cross_width.
|
(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) double |
frame_duration
The frame_duration.
|
private double |
HIGH_PASS1
The HIG h_ pas s1.
|
private double |
HIGH_PASS2
The HIG h_ pas s2.
|
(package private) Memory |
internalMemory
The internal memory.
|
(package private) Actuator |
legs
The legs.
|
(package private) Memory |
legsMemory
The legs memory.
|
private double |
LOW_PASS1
The LO w_ pas s1.
|
private double |
LOW_PASS2
The LO w_ pas s2.
|
(package private) Actuator |
mouth
The mouth.
|
(package private) Memory |
mouthMemory
The mouth memory.
|
(package private) float |
sampleRate
The sample rate.
|
(package private) double |
start_time
The start_time.
|
(package private) PP_QuadrantReasoning.WorldZone |
zone
The zone.
|
(package private) PP_QuadrantReasoning.ZoneMode |
zoneMode
The zone mode.
|
parameters| Constructor and Description |
|---|
PP_QuadrantReasoning() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
eventHandlerRegistered(EventHandler evtHdl)
Chamado no momento em que um novo EventHandler é registrado no Agente Musical.
|
PP_QuadrantReasoning.WorldZone |
getZone(int size)
Gets the zone.
|
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
double start_time
Memory internalMemory
Actuator legs
Memory legsMemory
Sensor eyes
Memory eyesMemory
private Sensor antenna
private Memory antennaMemory
private double LOW_PASS1
private double LOW_PASS2
private double HIGH_PASS1
private double HIGH_PASS2
private Vector actual_pos
private int cross_width
PP_QuadrantReasoning.WorldZone zone
PP_QuadrantReasoning.ZoneMode zoneMode
public java.lang.String[] audioFileList
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 durationpublic void processCommand(Command cmd)
RouterClientprocessCommand in interface RouterClientprocessCommand in class MusicalAgentComponentcmd - the cmdpublic PP_QuadrantReasoning.WorldZone getZone(int size)
size - the size