Class BasicWriteRequest
java.lang.Object
com.inductiveautomation.ignition.gateway.util.BasicWriteRequest
- All Implemented Interfaces:
- OPCWriteRequest
A basic implementation of OPCWriteRequest. Stores a ServerNodeId and Value.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionBasicWriteRequest(ServerNodeId nodeId, Object value) Constructor that takes the id of the item to write to, and the value.BasicWriteRequest(ServerNodeId nodeId, Object value, IndexRange indexRange) BasicWriteRequest(String serverName, String itemPath, Object value) Convenience constructor to build a write request out of basic values.BasicWriteRequest(String serverName, String itemPath, Object value, IndexRange indexRange) 
- 
Method SummaryModifier and TypeMethodDescriptionIf present, the node identified byOPCWriteRequest.getNodeId()is an array this value should be written to the element or elements at the givenIndexRange.The id to write togetValue()The value to writetoString()
- 
Field Details- 
nodeId
- 
value
- 
indexRange
 
- 
- 
Constructor Details- 
BasicWriteRequestConvenience constructor to build a write request out of basic values. Creates a server node id automatically, with a string based identifier in namespace 0. If a different namespace is required, the ServerNodeId should be constructed manually and passed to the other constructor.
- 
BasicWriteRequestpublic BasicWriteRequest(String serverName, String itemPath, Object value, @Nullable IndexRange indexRange) 
- 
BasicWriteRequestConstructor that takes the id of the item to write to, and the value.
- 
BasicWriteRequest
 
- 
- 
Method Details- 
getNodeIdDescription copied from interface:OPCWriteRequestThe id to write to- Specified by:
- getNodeIdin interface- OPCWriteRequest
 
- 
getValueDescription copied from interface:OPCWriteRequestThe value to write- Specified by:
- getValuein interface- OPCWriteRequest
 
- 
getIndexRangeDescription copied from interface:OPCWriteRequestIf present, the node identified byOPCWriteRequest.getNodeId()is an array this value should be written to the element or elements at the givenIndexRange.- Specified by:
- getIndexRangein interface- OPCWriteRequest
- Returns:
- if present, the IndexRangeto write this value to.
 
- 
toString
 
-