com.langner.jmatic2
Interface IPLCValue
- All Known Implementing Classes:
- PLCValue
- public interface IPLCValue
This interface represents the value access of a PLCAlias object.
- Version:
- 2.0
- Author:
- Langner Communications AG
- Copyright:
- Langner (c) 2001-2005
|
Method Summary |
byte[] |
getBinary()
Retrieve the data as raw binary values.
|
java.lang.Boolean |
getBoolean()
Retrieve the data as a boolean value.
|
java.util.Date |
getDate()
Retrieve the data as a Date value.
|
java.lang.Float |
getFloat()
Retrieve the data as a real value.
|
java.lang.Long |
getLong()
Retrieve the data as a long value.
|
java.lang.String |
getString()
Retrieve the data as a string.
|
java.lang.Long |
getTime()
Retrieve the data as a long value used as milliseconds.
|
getBoolean
public java.lang.Boolean getBoolean()
- Retrieve the data as a boolean value.
The PLCAlias object must be of type BOOLEAN.
- Returns:
- The value or null if the type of the alias does not match.
getLong
public java.lang.Long getLong()
- Retrieve the data as a long value.
The PLCAlias object must be of type BYTE, INT, DINT, WORD or DWORD.
- Returns:
- The value or null if the type of the alias does not match.
getFloat
public java.lang.Float getFloat()
- Retrieve the data as a real value.
The PLCAlias object must be of type REAL.
- Returns:
- The value or null if the type of the alias does not match.
getString
public java.lang.String getString()
- Retrieve the data as a string.
The PLCAlias object can be of any data type.
- Returns:
- The String value of the alias or the string representation of the value.
getDate
public java.util.Date getDate()
- Retrieve the data as a Date value.
The PLCAlias object must be of type PLC_DATE, PLC_TOD or PLC_DT.
- Returns:
- The value or null if the type of the alias does not match.
getTime
public java.lang.Long getTime()
- Retrieve the data as a long value used as milliseconds.
The PLCAlias object must be of type S5TIME or TIME.
- Returns:
- The value or null if the type of the alias does not match.
getBinary
public byte[] getBinary()
- Retrieve the data as raw binary values.
The PLCAlias object must be of type BINARY.
- Returns:
- The value or null if the type of the alias does not match.
Copyright © 2001-2005 Langner Communications AG. All Rights Reserved.