public class MissionPackageMessage extends GBEvent implements cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent, cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
protected LinkStateSet |
Links |
protected String |
Name |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected double |
Time |
| Constructor and Description |
|---|
MissionPackageMessage()
Used by Yylex to create empty message then to fill it's protected fields
(Yylex is in the same package).
|
MissionPackageMessage(double Time,
String Name,
int Link,
double Value,
double Torque)
Creates new instance of command MissionPackageMessage.
|
MissionPackageMessage(double Time,
String Name,
LinkState LS) |
MissionPackageMessage(MissionPackageMessage original)
Cloning constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<LinkState> |
getLinkStateSet()
This parameter gives the link number that will be described by the next
two parameters (Value and Torque).
|
String |
getName()
Name of the mission package
|
double |
getTime()
Timestamp form the UT since server start in seconds.
|
String |
toHtmlString()
Gets all properties and values to create a HTML formated string;
|
String |
toString() |
getSimTime, getWorldEventtoJsonLiteralclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final String PROTOTYPE
protected double Time
protected String Name
protected LinkStateSet Links
public MissionPackageMessage(double Time,
String Name,
int Link,
double Value,
double Torque)
Time - Timestamp form the UT since server start in seconds.Name - Name of the mission packageLink - This parameter gives the link number that will be described
by the next two parameters (Value and Torque). Please note that you will
have as many as these parameters as you have links.Value - This parameter has two possible meanings. If the link being
described is a prismatic joint, double gives the distance (in meters)
from the original position of the link. If the link being described is a
revolute joint, it gives a sector(probably).Torque - The Torque parameter gives the current torque of the link
being described.public MissionPackageMessage(MissionPackageMessage original)
public MissionPackageMessage()
public double getTime()
public String getName()
public List<LinkState> getLinkStateSet()
public String toString()
toString in class cz.cuni.amis.pogamut.base.communication.messages.InfoMessagepublic String toHtmlString()
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.