tuwien.auto.eibxlator

Class PointPDUXlator

Known Direct Subclasses:
PointPDUXlator_2ByteFloat, PointPDUXlator_3BitControlled, PointPDUXlator_8BitUnsigned, PointPDUXlator_Boolean, PointPDUXlator_String

public abstract class PointPDUXlator
extends java.lang.Object

This abstract class, is the base for every Application Layer encoding, decoding (LA_Modem) class.

Field Summary

static short
A_GROUPVALUE_READ
Application Layer group value read
static short
A_GROUPVALUE_RESPONSE
Application Layer group value response
static short
A_GROUPVALUE_WRITE
Application Layer group value write

Constructor Summary

PointPDUXlator()
Dummy constructor only used for initialising the eiclMap.

Method Summary

abstract byte[]
getAPDUByteArray()
Converts the input values in the requested APDU/ASDU format.
abstract String
getASDUasString()
Returns the ASDU as string
abstract EICLMap
getMinorTypes()
Get the type specific minor types
abstract String
getPointTypeMinor()
Returns the set minor type.
short
getServiceType()
Get the message service type (GROUP_VALUE_READ,GROUP_VALUE_WRITE....)
void
setAPDUByteArray(byte[] _APDU)
sets the APDU/ASDU as byte array, use getPdu to retrieve the value.
abstract void
setASDUfromString(String _ASDU)
Sets the ASDU value as string.
void
setServiceType(short _ServiceType)
Sets the message service type (GROUPVALUE_READ,GROUPVALUE_WRITE)

Field Details

A_GROUPVALUE_READ

public static final short A_GROUPVALUE_READ
Application Layer group value read
Field Value:
0

A_GROUPVALUE_RESPONSE

public static final short A_GROUPVALUE_RESPONSE
Application Layer group value response
Field Value:
1

A_GROUPVALUE_WRITE

public static final short A_GROUPVALUE_WRITE
Application Layer group value write
Field Value:
2

Constructor Details

PointPDUXlator

public PointPDUXlator()
Dummy constructor only used for initialising the eiclMap. Don't use this

Method Details

getAPDUByteArray

public abstract byte[] getAPDUByteArray()
Converts the input values in the requested APDU/ASDU format. The result is the complete Application Layer encoding.
Returns:
the asdu byte[]

getASDUasString

public abstract String getASDUasString()
Returns the ASDU as string
Returns:
the ASDU string

getMinorTypes

public abstract EICLMap getMinorTypes()
Get the type specific minor types
Returns:
the minor types

getPointTypeMinor

public abstract String getPointTypeMinor()
Returns the set minor type.
Returns:
the minor type

getServiceType

public short getServiceType()
Get the message service type (GROUP_VALUE_READ,GROUP_VALUE_WRITE....)
Returns:
the service type

setAPDUByteArray

public final void setAPDUByteArray(byte[] _APDU)
            throws EICLException
sets the APDU/ASDU as byte array, use getPdu to retrieve the value. Use this method for decoding.
Parameters:
_APDU - APDU/ASDU byte array
Throws:
EICLException -

setASDUfromString

public abstract void setASDUfromString(String _ASDU)
            throws EICLException
Sets the ASDU value as string. Use this method for encoding.
Parameters:
_ASDU - the ASDU value
Throws:
EICLException -

setServiceType

public final void setServiceType(short _ServiceType)
            throws EICLException
Sets the message service type (GROUPVALUE_READ,GROUPVALUE_WRITE)
Parameters:
_ServiceType - the service type
Throws:
EICLException -