|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjcontrol.comm.eia709.Eia709Address
public class Eia709Address
Represents an EIA-709.1 address that can be used as target addresses for network variables and "normal" application messages. Address types 0, 1 and 2a are supported. 2b and 3 are special purpose addresses which cannot be used for application messages. An address can only be created in the context of a node.
| Constructor Summary | |
|---|---|
protected |
Eia709Address(Eia709Node node,
int id)
Constructor used by Eia709NetworkVariable.getEia709Address() |
| Method Summary | |
|---|---|
static Eia709Address |
createAddressType0(Eia709Node node,
int dstSubnet)
Creates a type 0 address. |
static Eia709Address |
createAddressType1(Eia709Node node,
int dstGroup)
Creates a type 1 address. |
static Eia709Address |
createAddressType2a(Eia709Node node,
int dstSubnet,
int dstNode)
Creates a type 2a address. |
int |
getAddressType()
Returns the address type. |
int |
getDstGroup()
Returns DstGroup, if address type is ADDRESS_TYPE_1, otherwise throws an
IllegalArgumentException. |
int |
getDstNode()
Returns DstNode, if address type is ADDRESS_TYPE_2A, otherwise
throws an IllegalArgumentException. |
int |
getDstSubnet()
Returns DstSubnet, if address type is ADDRESS_TYPE_0 or
ADDRESS_TYPE_2A, otherwise
throws an IllegalArgumentException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, notifyAll, toString, wait |
| Constructor Detail |
|---|
protected Eia709Address(Eia709Node node,
int id)
node - the node the address should be added toid - the internal address id| Method Detail |
|---|
public static Eia709Address createAddressType0(Eia709Node node,
int dstSubnet)
node - the node the address should be added todstSubnet - DstSubnet
public static Eia709Address createAddressType1(Eia709Node node,
int dstGroup)
node - the node the address should be added todstGroup - DstGroup
public static Eia709Address createAddressType2a(Eia709Node node,
int dstSubnet,
int dstNode)
node - the node the address should be added todstSubnet - DstSubnetdstNode - DstNode
public int getAddressType()
ADDRESS_TYPE_0, ADDRESS_TYPE_1 or
ADDRESS_TYPE_2A)Eia709Constants.ADDRESS_TYPE_0,
Eia709Constants.ADDRESS_TYPE_1,
Eia709Constants.ADDRESS_TYPE_2Apublic int getDstGroup()
ADDRESS_TYPE_1, otherwise throws an
IllegalArgumentException.
createAddressType1(Eia709Node, int),
Eia709Constants.ADDRESS_TYPE_1public int getDstSubnet()
ADDRESS_TYPE_0 or
ADDRESS_TYPE_2A, otherwise
throws an IllegalArgumentException.
createAddressType0(Eia709Node, int),
createAddressType2a(Eia709Node, int, int),
Eia709Constants.ADDRESS_TYPE_0,
Eia709Constants.ADDRESS_TYPE_2Apublic int getDstNode()
ADDRESS_TYPE_2A, otherwise
throws an IllegalArgumentException.
createAddressType2a(Eia709Node, int, int),
Eia709Constants.ADDRESS_TYPE_2A
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||