|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Number
org.mbs.util.wireadmin.Primitive
org.mbs.util.wireadmin.StateEnvelope
public class StateEnvelope
StateEnvelope is an Primitive.INTEGER envelope, representing a list
of states.
| Field Summary | |
|---|---|
protected java.lang.String[] |
names
|
protected int |
state
|
protected int[] |
states
|
protected long |
time
|
| Fields inherited from class org.mbs.util.wireadmin.Primitive |
|---|
BOOLEAN, BYTE, CHARACTER, DOUBLE, FLOAT, identification, INTEGER, LONG, scope, SHORT |
| Constructor Summary | |
|---|---|
StateEnvelope(java.lang.String scope,
java.lang.Object identification,
int value,
int[] states,
java.lang.String[] names)
Creates a new state envelope of type Primitive.INTEGER. |
|
StateEnvelope(java.lang.String scope,
java.lang.Object identification,
int value,
int[] states,
java.lang.String[] names,
long time)
Creates a new state envelope of type Primitive.INTEGER. |
|
| Method Summary | |
|---|---|
java.lang.String |
getStateName()
Retrieves the name of the current state. |
java.lang.String |
getStateName(int state)
Retrieves the name of the state with the specified number |
int[] |
getStates()
Retrieves the list of supported states |
long |
getTime()
Retrieves the creation time |
int |
intValue()
Returns the value of the specified state as an int. |
long |
longValue()
Returns the value of the specified state as a long. |
| Methods inherited from class org.mbs.util.wireadmin.Primitive |
|---|
booleanValue, byteValue, charValue, doubleValue, floatValue, getIdentification, getScope, getType, getValue, shortValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int state
protected long time
protected int[] states
protected java.lang.String[] names
| Constructor Detail |
|---|
public StateEnvelope(java.lang.String scope,
java.lang.Object identification,
int value,
int[] states,
java.lang.String[] names)
Primitive.INTEGER.
scope - the scope of the primitiveidentification - the identificationvalue - the value of the current statestates - array of the statesnames - array with names of the states. The array should be the same
size as the states array.Primitive.Primitive(int, String, Object),
StateEnvelope(String, Object, int, int[], String[], long)
public StateEnvelope(java.lang.String scope,
java.lang.Object identification,
int value,
int[] states,
java.lang.String[] names,
long time)
Primitive.INTEGER.
scope - the scope of the primitiveidentification - the identificationvalue - the value of the current statestates - array of the statesnames - array with names of the states. The array should be the same
size as the states array.time - the time when the envelope is createdPrimitive.Primitive(int, String, Object)| Method Detail |
|---|
public java.lang.String getStateName()
public java.lang.String getStateName(int state)
state - the state
state
parameterpublic int[] getStates()
public long getTime()
public int intValue()
Primitive
intValue in class PrimitivePrimitive.intValue()public long longValue()
Primitive
longValue in class PrimitivePrimitive.longValue()
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||