public class JavaInputReasoning extends Reasoning
| Modifier and Type | Field and Description |
|---|---|
(package private) byte[] |
buffer
The buffer.
|
(package private) int |
chunk_size
Number of samples in a frame.
|
(package private) Actuator |
mouth
Actuator used to send audio events.
|
(package private) Memory |
mouthMemory
Actuator memory.
|
(package private) double |
period
The period.
|
(package private) java.util.ArrayList<double[]> |
queue
The queue.
|
(package private) javax.sound.sampled.TargetDataLine |
targetDataLine
Mic line.
|
parameters| Constructor and Description |
|---|
JavaInputReasoning() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
eventHandlerRegistered(EventHandler evtHdl)
Chamado no momento em que um novo EventHandler é registrado no Agente Musical.
|
boolean |
finit()
Finalizes the Mic Line.
|
boolean |
init()
Init the Mic Line.
|
void |
needAction(Actuator sourceActuator,
double instant,
double duration)
Chamado no caso de eventos frequentes, quando existe a necessidade de uma ação.
|
void |
process()
Método de processamento do raciocínio.
|
eventHandlerDeregistered, needAction, newSense, setWakeUp, start, stopaddParameter, addParameters, configure, getAddress, getAgent, getComponentName, getComponentType, getParameter, getParameter, getParameters, getState, getType, parameterUpdate, processCommand, receiveCommand, sendCommand, setAgent, setComponentName, setParameters, setState, setTypeActuator mouth
Memory mouthMemory
int chunk_size
double period
javax.sound.sampled.TargetDataLine targetDataLine
java.util.ArrayList<double[]> queue
byte[] buffer
public boolean init()
init in interface LifeCycleinit in class MusicalAgentComponentpublic boolean finit()
finit in interface LifeCyclefinit in class MusicalAgentComponentprotected void eventHandlerRegistered(EventHandler evtHdl)
ReasoningeventHandlerRegistered in class ReasoningevtHdl - the evt hdlpublic void needAction(Actuator sourceActuator, double instant, double duration)
ReasoningneedAction in class ReasoningsourceActuator - the source actuatorinstant - the instantduration - the duration