Package org.scictrl.csshell
Class Poop<T,V>
java.lang.Object
org.scictrl.csshell.Poop<T,V>
- Type Parameters:
T- data typeV- vector delivering value, such as DBR
Poop is object, which combines deliverables from remotely connected object in one package.
Contains value, timestamp, metadata, connection status at the time of creation and reference to vector,
an object of actual communication layer, which delivered those values.
- Author:
- igor@scictrl.com
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Poop
Creates new Poop object.- Parameters:
value- the value of reote connectiontimestamp- the timestamp, ifnull, then current local time is usedmetaData- if available metadata (limits, description, etc)status- the status of remote connection at the time of value retrievalvector- the object from communication layer, which delivered the value
-
-
Method Details
-
createTimestampPoop
createTimestampPoop.
- Returns:
- a
Poopobject
-
getMetaData
Getter for the field
metaData.- Returns:
- a
MetaDataobject
-
getStatus
Getter for the field
status.- Returns:
- a
Statusobject
-
getTimestamp
Getter for the field
timestamp.- Returns:
- a
Timestampobject
-
getValue
Getter for the field
value.- Returns:
- a T object
-
getVector
Getter for the field
vector.- Returns:
- a V object
-
getString
getString.
- Returns:
- a
Stringobject
-
toString
-
isStatusOK
public boolean isStatusOK()isStatusOK.
- Returns:
- a boolean
-