public class NetworkLayer extends NetworkElement
This class contains a representation of a network layer. This is an structure which contains a set of demands, multicast demands and links.
It also is characterized by a routing type, which can be SOURCE_ROUTING
, or
HOP_BY_HOP_ROUTING
. In layers with source routing, the
traffic is carried through routes and protection segments. In layers based on hop-by-hop routing, the traffic is forwarded as mandated by forwarding rules defined.
A layer can have a description message and a name, as well as attributes. The capacity of the links and the traffic of the demands can be measured
in different units. Note that in this schema, while links are associated to a single layer, nodes are not associated to layers, since they can have
input and output links at different layers.
Modifier and Type | Method and Description |
---|---|
URL |
getDefaultNodeIconURL()
Returns the user-defined URL of the default icon to represent the nodes at this layer.
|
SortedSet<String> |
getDemandAndMulticastDemandQosTypes() |
Pair<SortedSet<Demand>,SortedSet<MulticastDemand>> |
getDemandsPerQosType(String qosType)
Given a Qos type, returns the uncoupled demands in this layer with that QoS type, or empty set if none.
|
String |
getDemandTrafficUnits() |
String |
getLinkCapacityUnits() |
boolean |
isDeepCopy(NetworkLayer e2)
Returns true if the provided network layer is a deep copy of this
|
boolean |
isDefaultLayer()
Returns true if this layer is the default netowrk layer
|
void |
setDefaultNodeIconURL(URL defaultNodeIconURL)
Sets the user-defined URL of the default icon to represent the nodes at this layer.
|
String |
toString()
Returns a
String representation of the network layer. |
addTag, checkAttachedToNetPlanObject, checkAttachedToNetPlanObject, compareTo, equals, getAttribute, getAttribute, getAttributeAsDouble, getAttributeAsDoubleList, getAttributeAsDoubleMatrix, getAttributeAsDoubleMatrix, getAttributeAsStringList, getAttributeAsStringMatrix, getAttributes, getDescription, getId, getIndex, getName, getNetPlan, getNeType, getTags, hasTag, removeAllAttributes, removeAttribute, removeTag, setAttribute, setAttribute, setAttributeAsNumberList, setAttributeAsNumberMatrix, setAttributeAsNumberMatrix, setAttributeAsStringList, setAttributeAsStringMatrix, setAttributeMap, setDescription, setName, wasRemoved
public URL getDefaultNodeIconURL()
Returns the user-defined URL of the default icon to represent the nodes at this layer.
public Pair<SortedSet<Demand>,SortedSet<MulticastDemand>> getDemandsPerQosType(String qosType)
qosType
- see abovepublic String getDemandTrafficUnits()
public String getLinkCapacityUnits()
public boolean isDeepCopy(NetworkLayer e2)
e2
- the other elementpublic boolean isDefaultLayer()
public void setDefaultNodeIconURL(URL defaultNodeIconURL)
Sets the user-defined URL of the default icon to represent the nodes at this layer.
defaultNodeIconURL
- see above.public String toString()
Returns a String
representation of the network layer.
toString
in class NetworkElement
String
representation of the network layerCopyright © 2018. All rights reserved.