public class PP_MovementReasoning extends Reasoning
| Modifier and Type | Field and Description |
|---|---|
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 Sensor |
antenna
The antenna.
|
private Memory |
antennaMemory
The antenna memory.
|
private static java.lang.String |
CONF_ACCELERATION
The Constant CONF_ACCELERATION.
|
private static java.lang.String |
CONF_MUSICAL_AGENT
The Constant CONF_MUSICAL_AGENT.
|
private static java.lang.String |
CONF_MUSICAL_AGENT_CLASS
The Constant CONF_MUSICAL_AGENT_CLASS.
|
private Sensor |
eyes
The eyes.
|
private Memory |
eyesMemory
The eyes memory.
|
private static java.lang.String |
INST_TYPE_REACH
The Constant INST_TYPE_REACH.
|
private static java.lang.String |
INST_TYPE_SEQUENCE
The Constant INST_TYPE_SEQUENCE.
|
private double |
last_distance
The last_distance.
|
private Actuator |
legs
The legs.
|
private Memory |
legsMemory
The legs memory.
|
private boolean |
loop
The loop.
|
private double |
MAX_ACELERATION
The max aceleration.
|
private double |
precision
The precision.
|
private int |
state
The state.
|
private java.util.ArrayList<java.lang.Double> |
time_constrains
The time_constrains.
|
private java.util.ArrayList<Vector> |
waypoints
The waypoints.
|
parameters| Constructor and Description |
|---|
PP_MovementReasoning() |
| 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().
|
private static org.w3c.dom.Document |
loadXMLFile(java.lang.String xmlFile)
Load xml file.
|
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.
|
private static java.lang.String |
readAttribute(org.w3c.dom.Node elem,
java.lang.String attributeName,
java.lang.String defaultValue)
Read attribute.
|
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, processCommand, receiveCommand, sendCommand, setAgent, setComponentName, setParameters, setState, setTypeprivate Actuator legs
private Sensor eyes
private Sensor antenna
private Memory legsMemory
private Memory eyesMemory
private Memory antennaMemory
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 int state
private Vector actual_pos
private Vector actual_vel
private Vector actual_ori
private double MAX_ACELERATION
private static final java.lang.String INST_TYPE_SEQUENCE
private static final java.lang.String INST_TYPE_REACH
private static final java.lang.String CONF_MUSICAL_AGENT_CLASS
private static final java.lang.String CONF_MUSICAL_AGENT
private static final java.lang.String CONF_ACCELERATION
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 process()
Reasoningprivate void sendStopCommand()
private void sendAccCommand(Vector acc, double dur)
acc - the accdur - the durprivate void sendTransportCommand(Vector pos)
pos - the posprivate static org.w3c.dom.Document loadXMLFile(java.lang.String xmlFile)
xmlFile - the xml fileprivate static java.lang.String readAttribute(org.w3c.dom.Node elem,
java.lang.String attributeName,
java.lang.String defaultValue)
elem - the elemattributeName - the attribute namedefaultValue - the default value