org.universAAL.lddi.lib.ieeex73std.manager.apdu
Class APDUGenerator<T>

Package class diagram package APDUGenerator
java.lang.Object
  extended by org.universAAL.lddi.lib.ieeex73std.manager.apdu.APDUGenerator<T>

public class APDUGenerator<T>
extends Object


Constructor Summary
APDUGenerator(IEncoder<T> encoder)
           
 
Method Summary
 ApduType AareApduGenerator(int reason)
           
 ApduType AarqApduGenerator()
           
 ApduType AbrtApduGenerator(int reason)
           
 ApduType createRlrqApduNormal()
           
 ApduType extConfigResponsegenerator(InvokeIDType invoke_id, ConfigReportRsp resp)
          Generate the response to a configuration report from the Agent.
 ApduType MeasureACKGenerator(DataApdu datareceived, int typeofreport)
          Generation of an acknowledgement for a measurement received from an Agent.
 ApduType RlreApduGenerator(int reason)
           
 ApduType RoerGenerator(InvokeIDType invokeid, int err_code)
          Something was wrong processing the Apdu from the Agent, and we will send an Error.
 ApduType RorjGenerator(InvokeIDType invokeid, int err_code)
          Some APDU is not acceptable and we send a reject message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

APDUGenerator

public APDUGenerator(IEncoder<T> encoder)
Method Detail

AarqApduGenerator

public ApduType AarqApduGenerator()

AareApduGenerator

public ApduType AareApduGenerator(int reason)

createRlrqApduNormal

public ApduType createRlrqApduNormal()

RlreApduGenerator

public ApduType RlreApduGenerator(int reason)

AbrtApduGenerator

public ApduType AbrtApduGenerator(int reason)

MeasureACKGenerator

public ApduType MeasureACKGenerator(DataApdu datareceived,
                                    int typeofreport)
Generation of an acknowledgement for a measurement received from an Agent.

Parameters:
datareceived - measurement received from the Agent
typeofreport - integer with the code of the report received.
Returns:

RoerGenerator

public ApduType RoerGenerator(InvokeIDType invokeid,
                              int err_code)
Something was wrong processing the Apdu from the Agent, and we will send an Error.

Parameters:
invokeid - sequence number
err_code - identificator of the error
Returns:

RorjGenerator

public ApduType RorjGenerator(InvokeIDType invokeid,
                              int err_code)
Some APDU is not acceptable and we send a reject message

Parameters:
invokeid - sequence number
err_code - identificator of the error
Returns:

extConfigResponsegenerator

public ApduType extConfigResponsegenerator(InvokeIDType invoke_id,
                                           ConfigReportRsp resp)
Generate the response to a configuration report from the Agent. Usually, this will be an extended configuration

Parameters:
invoke_id - sequence number of DataApdu in which the configuration report is embedded
resp - object with the response (if it is valid and the manager can work with it, or not)
Returns:
the Apdu response


Copyright © 2014 universAAL Consortium. All Rights Reserved.