org.opcfoundation.ua.builtintypes
Class DataValue

java.lang.Object
  extended by org.opcfoundation.ua.builtintypes.DataValue
All Implemented Interfaces:
Cloneable

public class DataValue
extends Object
implements Cloneable

DataValue class.


Field Summary
static NodeId ID
          Constant ID
 
Constructor Summary
DataValue()
          Constructor for DataValue.
DataValue(StatusCode statusCode)
          Constructor for DataValue.
DataValue(Variant variant)
          Constructor for DataValue.
DataValue(Variant value, StatusCode statusCode)
          Constructor for DataValue.
DataValue(Variant value, StatusCode statusCode, DateTime sourceTimestamp, DateTime serverTimestamp)
          Constructor for DataValue.
DataValue(Variant value, StatusCode statusCode, DateTime sourceTimestamp, UnsignedShort sourcePicoseconds, DateTime serverTimestamp, UnsignedShort serverPicoseconds)
          Constructor for DataValue.
 
Method Summary
 Object clone()
          
 boolean equals(Object obj)
          
 UnsignedShort getServerPicoseconds()
          Getter for the field serverPicoseconds.
 DateTime getServerTimestamp()
          Getter for the field serverTimestamp.
 UnsignedShort getSourcePicoseconds()
          Getter for the field sourcePicoseconds.
 DateTime getSourceTimestamp()
          Getter for the field sourceTimestamp.
 StatusCode getStatusCode()
          Getter for the field statusCode.
 Variant getValue()
          Getter for the field value.
 int hashCode()
          
 boolean isNull()
          Check if Value is null.
 void setServerPicoseconds(UnsignedShort serverPicoseconds)
          Setter for the field serverPicoseconds.
 void setServerTimestamp(DateTime serverTimestamp)
          Setter for the field serverTimestamp.
 void setSourcePicoseconds(UnsignedShort sourcePicoseconds)
          Setter for the field sourcePicoseconds.
 void setSourceTimestamp(DateTime sourceTimestamp)
          Setter for the field sourceTimestamp.
 void setStatusCode(StatusCode statusCode)
          Setter for the field statusCode.
 void setStatusCode(UnsignedInteger value)
          Setter for the field statusCode.
 void setValue(Variant value)
          Setter for the field value.
 String toString()
          
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final NodeId ID
Constant ID

Constructor Detail

DataValue

public DataValue()

Constructor for DataValue.


DataValue

public DataValue(Variant value,
                 StatusCode statusCode,
                 DateTime sourceTimestamp,
                 UnsignedShort sourcePicoseconds,
                 DateTime serverTimestamp,
                 UnsignedShort serverPicoseconds)

Constructor for DataValue.

Parameters:
value - a Variant object.
statusCode - a StatusCode object.
sourceTimestamp - a DateTime object.
sourcePicoseconds - a UnsignedShort object.
serverTimestamp - a DateTime object.
serverPicoseconds - a UnsignedShort object.

DataValue

public DataValue(Variant value,
                 StatusCode statusCode,
                 DateTime sourceTimestamp,
                 DateTime serverTimestamp)

Constructor for DataValue.

Parameters:
value - a Variant object.
statusCode - a StatusCode object.
sourceTimestamp - a DateTime object.
serverTimestamp - a DateTime object.

DataValue

public DataValue(StatusCode statusCode)

Constructor for DataValue.

Parameters:
statusCode - a StatusCode object.

DataValue

public DataValue(Variant value,
                 StatusCode statusCode)

Constructor for DataValue.

Parameters:
value - a Variant object.
statusCode - a StatusCode object.

DataValue

public DataValue(Variant variant)

Constructor for DataValue.

Parameters:
variant - a Variant object.
Method Detail

getServerTimestamp

public DateTime getServerTimestamp()

Getter for the field serverTimestamp.

Returns:
a DateTime object.

setServerTimestamp

public void setServerTimestamp(DateTime serverTimestamp)

Setter for the field serverTimestamp.

Parameters:
serverTimestamp - a DateTime object.

getSourceTimestamp

public DateTime getSourceTimestamp()

Getter for the field sourceTimestamp.

Returns:
a DateTime object.

setSourceTimestamp

public void setSourceTimestamp(DateTime sourceTimestamp)

Setter for the field sourceTimestamp.

Parameters:
sourceTimestamp - a DateTime object.

getStatusCode

public StatusCode getStatusCode()

Getter for the field statusCode.

Returns:
a StatusCode object.

setStatusCode

public void setStatusCode(StatusCode statusCode)

Setter for the field statusCode.

Parameters:
statusCode - a StatusCode object.

setStatusCode

public void setStatusCode(UnsignedInteger value)

Setter for the field statusCode.

Parameters:
value - a UnsignedInteger object.

getValue

public Variant getValue()

Getter for the field value.

Returns:
a Variant object.

isNull

public boolean isNull()
Check if Value is null.

Returns:
true if Value is null or the Variant returned by it contains a null.

setValue

public void setValue(Variant value)

Setter for the field value.

Parameters:
value - a Variant object.

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

getSourcePicoseconds

public UnsignedShort getSourcePicoseconds()

Getter for the field sourcePicoseconds.

Returns:
a UnsignedShort object.

setSourcePicoseconds

public void setSourcePicoseconds(UnsignedShort sourcePicoseconds)

Setter for the field sourcePicoseconds.

Parameters:
sourcePicoseconds - a UnsignedShort object.

getServerPicoseconds

public UnsignedShort getServerPicoseconds()

Getter for the field serverPicoseconds.

Returns:
a UnsignedShort object.

setServerPicoseconds

public void setServerPicoseconds(UnsignedShort serverPicoseconds)

Setter for the field serverPicoseconds.

Parameters:
serverPicoseconds - a UnsignedShort object.

toString

public String toString()

Overrides:
toString in class Object

clone

public Object clone()

Overrides:
clone in class Object


Copyright © 2018. All rights reserved.