public class RANLogicalElement extends LogicalElement
A class representing a RAN based, non-device, logical element, such as a GSM
or UTRAN cell. The logical element will be returned as a "device" from a
GetDeviceInfo ( Collector.GetDeviceInfo(int, String)
) or
GetDeviceList ( Collector.GetDeviceList(int, int, String, String)
)
XML-RPC call but does not necessarily have all the attributes typically found
on a device, such as an address or a set of interfaces. Being a RAN element,
it also has a specific RAN data type type
and has the ability to add
RAN location information (
addLocationInformation(String, String, String, String)
)
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
type
The RAN data type
|
id, name
customData, extraInfo
Constructor and Description |
---|
RANLogicalElement(java.lang.String id,
java.lang.String type)
Create a new RAN logical element
|
Modifier and Type | Method and Description |
---|---|
void |
addLocationInformation(java.lang.String mcc,
java.lang.String mnc,
java.lang.String lac,
java.lang.String rac)
Add RAN specific location information to the RAN element.
|
void |
associate(Associatable a)
Associate this object with the given object.
|
java.lang.String |
getType()
Get the type of this logical entity
|
protected void |
setName(boolean useType)
Automatically generate the name of this logical element based on the ID
and type (if available)
|
void |
setType(java.lang.String type)
Set the type of this logical element
|
getId, getName, merge, setId, setName, toXMLString
addCustomData, addExtraInfo, getCustomData, getExtraInfo
public RANLogicalElement(java.lang.String id, java.lang.String type)
id
- The unique identifier for this elementtype
- The RAN data type of this element, e.g. ranGSMCell or
ranUtranCellpublic void addLocationInformation(java.lang.String mcc, java.lang.String mnc, java.lang.String lac, java.lang.String rac)
rac
- The routing area code for this element (or associated routing
area)mcc
- The mobile country code for this element (or associated
routing or location area)mnc
- The mobile network code for this element (or associated
routing or location area)lac
- The location area code for this element (or associated routing
or location area)public void associate(Associatable a)
Associatable
associate
in interface Associatable
associate
in class LogicalElement
a
- The object to associate with this object.public java.lang.String getType()
protected void setName(boolean useType)
useType
- Use the RAN data type in the naming of the logical elementpublic void setType(java.lang.String type)
type
- The type of this logical element