|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.alien.enterpriseRFID.externalio.ExternalIO
ExternalIO object represents information about a single digital I/O event on the reader.
| Field Summary | |
static int |
DI
|
static int |
DO
|
| Constructor Summary | |
ExternalIO()
Constructs an ExternalIO with an undefined type. |
|
ExternalIO(int type)
Constructs an ExternalIO with the supplied type, which should be one of: DI, DO. |
|
ExternalIO(int type,
int value,
long eventTime)
Constructs an ExternalIO with the supplied type, value and timestamp. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones this ExternalIO object. |
long |
getEventTime()
Returns the timestamp of this ExternalIO event, as reported by the reader's on-board clock. |
long |
getEventTimeHost()
Returns the timestamp of this ExternalIO event, as reported by the host system's clock. |
int |
getType()
Returns this ExternalIO's type. |
java.lang.String |
getTypeString()
Returns this ExternalIO's type, as a string. |
int |
getValue()
Returns the value for this ExternalIO. |
void |
setEventTime(long eventTime)
Sets the timestamp of this ExternalIO event, as reported by the reader's on-board clock. |
void |
setEventTimeHost()
Sets the timestamp of this ExternalIO event, as reported by the host system's clock, to the current system time. |
void |
setEventTimeHost(long eventTimeHost)
Sets the timestamp of this ExternalIO event, as reported by the host system's clock. |
void |
setType(int type)
Sets this ExternalIO's type. |
void |
setType(java.lang.String typeString)
Sets this ExternalIO's type, given as a String, "DI" or "DO". |
void |
setValue(int value)
Sets the value for this ExternalIO. |
java.lang.String |
toLongString()
Returns a longer string representation of this ExternalIO, including type, value, eventTime, and eventTimeHost. |
java.lang.String |
toString()
Returns a string representation of this ExternalIO. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DI
public static final int DO
| Constructor Detail |
public ExternalIO()
ExternalIO(int),
ExternalIO(int, int, long)public ExternalIO(int type)
DI, DO. The eventTimeHost is set to the current system
clock, eventTime and value are both zero.
type - the type of I/OExternalIO(),
ExternalIO(int, int, long)
public ExternalIO(int type,
int value,
long eventTime)
DI, DO.
type - the type of I/Ovalue - the value of the inputs/outputseventTime - the timestamp at which the event occurredExternalIO(),
ExternalIO(int)| Method Detail |
public int getType()
DI, and
DO.
setType(int)public java.lang.String getTypeString()
setType(int),
setType(String)public void setType(int type)
DI, and
DO.
type - the ExternalIO typegetType()public void setType(java.lang.String typeString)
typeString - the ExternalIO type, as a StringgetType()public int getValue()
setValue(int)public void setValue(int value)
value - the value of this ExternalIOgetValue()public long getEventTime()
setEventTime(long)public void setEventTime(long eventTime)
eventTime - the time this ExternalIO event occurred, by the reader's clockgetEventTime()public long getEventTimeHost()
setEventTimeHost(long),
setEventTimeHost()public void setEventTimeHost(long eventTimeHost)
eventTimeHost - the time this ExternalIO event occurred, by the host's clockgetEventTimeHost()public void setEventTimeHost()
getEventTimeHost()public java.lang.Object clone()
ExternalIO object.
public java.lang.String toString()
public java.lang.String toLongString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||