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 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
Poop
object
-
getMetaData
Getter for the field
metaData
.- Returns:
- a
MetaData
object
-
getStatus
Getter for the field
status
.- Returns:
- a
Status
object
-
getTimestamp
Getter for the field
timestamp
.- Returns:
- a
Timestamp
object
-
getValue
Getter for the field
value
.- Returns:
- a T object
-
getVector
Getter for the field
vector
.- Returns:
- a V object
-
getString
getString.
- Returns:
- a
String
object
-
toString
-
isStatusOK
public boolean isStatusOK()isStatusOK.
- Returns:
- a boolean
-