public class PP_OscMovementReasoning extends Reasoning
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
PP_OscMovementReasoning.DirectionState
The Enum DirectionState.
|
| Modifier and Type | Field and Description |
|---|---|
private boolean |
active
The active.
|
private int |
active_waypoint
The active_waypoint.
|
private Vector |
actual_ori
The actual_ori.
|
private Vector |
actual_pos
The actual_pos.
|
private Vector |
actual_vel
The actual_vel.
|
private boolean |
allowChange
The allow change.
|
private Sensor |
antenna
The antenna.
|
private Memory |
antennaMemory
The antenna memory.
|
private java.util.Hashtable<java.lang.String,java.lang.String> |
audioFileReference
The audio file reference.
|
private java.util.Hashtable<java.lang.String,java.lang.String> |
curto
The curto.
|
private double |
DEFAULT_ACELERATION
The default aceleration.
|
private double |
DEFAULT_DURATION
The default duration.
|
static double |
EPSILON
The Constant EPSILON.
|
private Sensor |
eyes
The eyes.
|
private Memory |
eyesMemory
The eyes memory.
|
private boolean |
inverted
The inverted.
|
private int |
ISO_MVT_TYPE
The iso mvt type.
|
private Vector |
last_acc
The last_acc.
|
private double |
last_distance
The last_distance.
|
private java.util.Date |
lastChange
The last change.
|
private Actuator |
legs
The legs.
|
private Memory |
legsMemory
The legs memory.
|
private java.util.Hashtable<java.lang.String,java.lang.String> |
longo
The longo.
|
private boolean |
loop
The loop.
|
private double |
MAX_ACELERATION
The max aceleration.
|
private java.util.Hashtable<java.lang.String,java.lang.String> |
nylon
The nylon.
|
private java.util.Hashtable<java.lang.String,java.lang.String> |
percussaoSino
The percussao sino.
|
private java.util.Hashtable<java.lang.String,java.lang.String> |
percussoes
The percussoes.
|
private java.util.Hashtable<java.lang.String,java.lang.String> |
pizzicatos
The pizzicatos.
|
private double |
precision
The precision.
|
private java.util.Hashtable<java.lang.String,java.lang.String> |
sinos
The sinos.
|
(package private) PP_OscMovementReasoning.DirectionState |
state
The state.
|
private java.util.ArrayList<java.lang.Double> |
time_constrains
The time_constrains.
|
private long |
timeDiff
The time diff.
|
private double |
total_distance
The total_distance.
|
private java.util.Hashtable<java.lang.String,java.lang.String> |
tremolos
The tremolos.
|
private java.util.ArrayList<Vector> |
waypoints
The waypoints.
|
parameters| Constructor and Description |
|---|
PP_OscMovementReasoning() |
| Modifier and Type | Method and Description |
|---|---|
private void |
changeDirection(int direction)
Change direction.
|
private void |
changeSample(int direction)
Change sample.
|
protected void |
eventHandlerRegistered(EventHandler evtHdl)
Chamado no momento em que um novo EventHandler é registrado no Agente Musical.
|
private Vector |
getIsoOscVector(int size,
double oscX,
double oscY)
Gets the iso osc vector.
|
private Vector |
getOscVector(int size,
double oscX,
double oscY)
Gets the osc vector.
|
boolean |
init()
User-implemented initialization method, called by start().
|
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.
|
private void |
sendAccCommand(Vector acc,
double dur)
Send acc command.
|
private void |
sendStopCommand()
Send stop command.
|
private void |
sendTransportCommand(Vector pos)
Send transport command.
|
eventHandlerDeregistered, needAction, needAction, setWakeUp, start, stopaddParameter, addParameters, configure, finit, getAddress, getAgent, getComponentName, getComponentType, getParameter, getParameter, getParameters, getState, getType, parameterUpdate, receiveCommand, sendCommand, setAgent, setComponentName, setParameters, setState, setTypepublic static final double EPSILON
private Actuator legs
private Sensor eyes
private Sensor antenna
private Memory legsMemory
private Memory eyesMemory
private Memory antennaMemory
private boolean active
private boolean allowChange
private long timeDiff
private java.util.Date lastChange
private java.util.ArrayList<Vector> waypoints
private java.util.ArrayList<java.lang.Double> time_constrains
private boolean loop
private int active_waypoint
private double precision
private double last_distance
private double total_distance
private Vector last_acc
private boolean inverted
private Vector actual_pos
private Vector actual_vel
private Vector actual_ori
private java.util.Hashtable<java.lang.String,java.lang.String> audioFileReference
private java.util.Hashtable<java.lang.String,java.lang.String> sinos
private java.util.Hashtable<java.lang.String,java.lang.String> tremolos
private java.util.Hashtable<java.lang.String,java.lang.String> nylon
private java.util.Hashtable<java.lang.String,java.lang.String> percussaoSino
private java.util.Hashtable<java.lang.String,java.lang.String> pizzicatos
private java.util.Hashtable<java.lang.String,java.lang.String> percussoes
private java.util.Hashtable<java.lang.String,java.lang.String> curto
private java.util.Hashtable<java.lang.String,java.lang.String> longo
private double MAX_ACELERATION
private double DEFAULT_ACELERATION
private double DEFAULT_DURATION
private int ISO_MVT_TYPE
PP_OscMovementReasoning.DirectionState state
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 processCommand(Command cmd)
RouterClientprocessCommand in interface RouterClientprocessCommand in class MusicalAgentComponentcmd - the cmdpublic void process()
Reasoningprivate void sendStopCommand()
private void sendAccCommand(Vector acc, double dur)
acc - the accdur - the durprivate void sendTransportCommand(Vector pos)
pos - the posprivate Vector getOscVector(int size, double oscX, double oscY)
size - the sizeoscX - the osc xoscY - the osc yprivate Vector getIsoOscVector(int size, double oscX, double oscY)
size - the sizeoscX - the osc xoscY - the osc yprivate void changeDirection(int direction)
direction - the directionprivate void changeSample(int direction)
direction - the direction