public class GeneralApplicationError extends Object implements LongFrame, PrimaryAddress
Modifier and Type | Class and Description |
---|---|
static class |
GeneralApplicationError.GeneralApplicationErrorEnum |
Frame.ControlCode
Modifier and Type | Field and Description |
---|---|
static String |
RSP_UD_SUBTYPE |
Constructor and Description |
---|
GeneralApplicationError() |
GeneralApplicationError(UserDataResponse old) |
Modifier and Type | Method and Description |
---|---|
boolean |
addDataBlock(DataBlock dataBlock) |
void |
fromJSON(net.sf.json.JSONObject json) |
byte |
getAddress() |
Frame.ControlCode |
getControlCode() |
GeneralApplicationError.GeneralApplicationErrorEnum |
getError() |
DataBlock |
getLastDataBlock() |
boolean |
isAcd() |
boolean |
isDfc() |
Iterator<DataBlock> |
iterator() |
void |
replaceDataBlock(DataBlock oldDataBlock,
DataBlock newDataBlock) |
void |
setAcd(boolean acd) |
void |
setAddress(byte address) |
void |
setDfc(boolean dfc) |
void |
setError(byte b) |
void |
setError(GeneralApplicationError.GeneralApplicationErrorEnum error) |
net.sf.json.JSONObject |
toJSON(JsonSerializeType jsonSerializeType) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static String RSP_UD_SUBTYPE
public GeneralApplicationError()
public GeneralApplicationError(UserDataResponse old)
public net.sf.json.JSONObject toJSON(JsonSerializeType jsonSerializeType)
toJSON
in interface JSONSerializable
public void fromJSON(net.sf.json.JSONObject json)
fromJSON
in interface JSONSerializable
public boolean addDataBlock(DataBlock dataBlock)
addDataBlock
in interface LongFrame
public byte getAddress()
getAddress
in interface PrimaryAddress
public Frame.ControlCode getControlCode()
getControlCode
in interface Frame
public GeneralApplicationError.GeneralApplicationErrorEnum getError()
public DataBlock getLastDataBlock()
getLastDataBlock
in interface LongFrame
public boolean isAcd()
public boolean isDfc()
public void replaceDataBlock(DataBlock oldDataBlock, DataBlock newDataBlock)
replaceDataBlock
in interface LongFrame
public void setAcd(boolean acd)
acd
- the acd to setpublic void setAddress(byte address)
setAddress
in interface PrimaryAddress
address
- the address to setpublic void setDfc(boolean dfc)
dcf
- the dfc to setpublic void setError(byte b)
public void setError(GeneralApplicationError.GeneralApplicationErrorEnum error)
error
- the error to setCopyright © 2009–2016 MBus4J. All rights reserved.