Package org.openmuc.jdlms.datatypes
Interface CosemDateFormat
-
- All Known Implementing Classes:
CosemDate
,CosemDateTime
,CosemTime
public interface CosemDateFormat
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CosemDateFormat.Field
Fields of the CosemDateFormat.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
encode()
The octet string.int
get(CosemDateFormat.Field field)
Retrieves the value for a certain value.int
length()
The size of the octet string.
-
-
-
Method Detail
-
encode
byte[] encode()
The octet string.- Returns:
- the octet string.
-
length
int length()
The size of the octet string.- Returns:
- the size.
-
get
int get(CosemDateFormat.Field field) throws java.lang.IllegalArgumentException
Retrieves the value for a certain value.- Parameters:
field
- the field which should be retrieved.- Returns:
- the value as an int32.
- Throws:
java.lang.IllegalArgumentException
- if the class doesn't have the field.
-
-