|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdsto.dfc.databeans.AbstractDataObject
dsto.dfc.databeans.SimpleDataObject
dsto.dfc.databeans.FancyDataObject
livespace.services.Entity
livespace.services.entities.PositionableDevice
public class PositionableDevice
Represents a device (or support/structure that is supporting a device) that can be mechanically controlled in terms of it's translation or position (position in the x,y,z axis), and rotation (rotation around the x,y,z axis). Physically such a device would use some mechanical means (servos, hydraulics etc) to provide this control and provide the ability to control these mechanics through some interface (i.e. RS232).
The directions for translation and rotation (i.e. a positive translation in the x-direction) are determined using the 'right-hand rule'. That is, positive x is right (along the viewing plane), positive y is 'up' )along the viewing plane) and positive z is towards the viewer (out of the viewing plane). A positive value of x-rotation is the direction in which the fingers point using the 'right-hand rule' (i.e. point thumb of right hand towards positive direction of x-axis, the direction in which finger curl is positive x rotation. Similarly for rotation around the y- and z-axes.
Field Summary | |
---|---|
static String |
DECREASE
String to decrease (change in a negative direction) the rotation or translation. |
static String |
ENTITY_TYPE
|
static String |
INCREASE
String to increase (change in a positive direction) the rotation or translation. |
static String |
STATIONARY
Signifies the device is stationary (still) in a particular direction of available movement. |
static String |
X_ROTATION
Rotation attribute name if the device supports rotation around the x-axis. |
static String |
X_TRANSLATION
Translation attribute name if device supports translation (linear movement) along the x-axis. |
static String |
Y_ROTATION
Rotation attribute name if the device supports rotation around the y-axis. |
static String |
Y_TRANSLATION
Translation attribute name if device supports translation (linear movement) along the y-axis. |
static String |
Z_ROTATION
Rotation attribute name if the device supports rotation around the z-axis. |
static String |
Z_TRANSLATION
Translation attribute name if device supports translation (linear movement) along the z-axis. |
Fields inherited from class livespace.services.Entity |
---|
container, id, lastTouched, name, unconfirmedUpdates |
Fields inherited from class dsto.dfc.databeans.AbstractDataObject |
---|
listeners |
Fields inherited from interface dsto.dfc.databeans.IDataObject |
---|
OVERRIDE, PERSISTENT, PERSISTENT_OVERRIDE, TRANSIENT, TRANSIENT_OVERRIDE |
Constructor Summary | |
---|---|
PositionableDevice()
|
|
PositionableDevice(String id)
|
|
PositionableDevice(String id,
String name)
|
Method Summary | |
---|---|
String |
getType()
The type of the object (eg "room", "light", "volume", etc). |
Methods inherited from class livespace.services.Entity |
---|
create, createId, getElvin, getType, getTypeInfo, mutex, sameEntity, shallowClone, waitForProperty, waitForProperty, waitForProperty, waitForProperty |
Methods inherited from class dsto.dfc.databeans.FancyDataObject |
---|
childPropertyChanged, getValue, isTransient, propertyIterator, setValue |
Methods inherited from class dsto.dfc.databeans.SimpleDataObject |
---|
getFieldNames, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ENTITY_TYPE
public static final String X_TRANSLATION
public static final String Y_TRANSLATION
public static final String Z_TRANSLATION
public static final String X_ROTATION
public static final String Y_ROTATION
public static final String Z_ROTATION
public static final String STATIONARY
public static final String INCREASE
public static final String DECREASE
Constructor Detail |
---|
public PositionableDevice()
public PositionableDevice(String id)
public PositionableDevice(String id, String name)
Method Detail |
---|
public String getType()
Entity
NOTE: it is also a good practice to provide a static field that defines the entity type on the class: eg
public static final String ENTITY_TYPE = "room";
getType
in class Entity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |