public class WNode extends WAbstractNetworkElement
Modifier and Type | Method and Description |
---|---|
SortedSet<WVnfInstance> |
getAllVnfInstances()
Returns all the VNF instances in this node, of any type
|
String |
getArbitraryParamString() |
SortedSet<WFiber> |
getIncomingFibers()
Returns the set of incoming fibers to the node
|
SortedSet<WIpLink> |
getIncomingIpLinks()
Returns the set of incoming IP links to the node
|
SortedSet<WLightpathRequest> |
getIncomingLigtpathRequests()
Returns the set of incoming lightpath requests to the node
|
SortedSet<WLightpathUnregenerated> |
getIncomingLigtpaths()
Returns the set of incoming lightpaths to the node
|
SortedSet<WServiceChainRequest> |
getIncomingServiceChainRequests()
Returns the set of incoming service chain requests of the node: those which have the node as a potential end node
|
SortedSet<WServiceChain> |
getIncomingServiceChains()
Returns the set of incoming service chains to the node, including those ended in a VNF in the node
|
SortedSet<WLightpathUnregenerated> |
getInOutOrTraversingLigtpaths()
Returns the set of incoming, outgoing and traversing lightpaths to the node
|
SortedSet<WServiceChain> |
getInOutOrTraversingServiceChains()
Returns the set of incoming, outgoing and traversing service chains to the node.
|
String |
getName()
Returns the node name, which must be unique among all the nodes
|
Node |
getNe()
Returns the underlying Net2Plan object.
|
Point2D |
getNodePositionXY()
Returns the (X,Y) node position
|
double |
getOccupiedCpus()
Returns the current number of occupied CPUs by the instantiated VNFs
|
double |
getOccupiedHdGB()
Returns the current amount of occupied hard-disk (in giga bytes) by the instantiated VNFs
|
double |
getOccupiedRamGB()
Returns the current amount of occupied RAM (in giga bytes) by the instantiated VNFs
|
SortedSet<WFiber> |
getOutgoingFibers()
Returns the set of outgoing fibers of the node
|
SortedSet<WIpLink> |
getOutgoingIpLinks()
Returns the set of outgoing IP links of the node
|
SortedSet<WLightpathRequest> |
getOutgoingLigtpathRequests()
Returns the set of outgoing lightpath requests of the node
|
SortedSet<WLightpathUnregenerated> |
getOutgoingLigtpaths()
Returns the set of outgoing lightpaths of the node
|
SortedSet<WServiceChainRequest> |
getOutgoingServiceChainRequests()
Returns the set of outgoing service chain requests of the node: those which have the node as a potential injection node
|
SortedSet<WServiceChain> |
getOutgoingServiceChains()
Returns the set of outgoing service chains of the node, including those starting in a VNF in the node
|
double |
getPopulation()
Returns the user-defined node population
|
double |
getTotalHdGB()
Returns the total hard disk size (in GBytes) available in the node for instantiation of VNFs
|
double |
getTotalNumCpus()
Returns the number of CPUs available in the node for instantiation of VNFs
|
double |
getTotalRamGB()
Returns the total RAM (in GBytes) available in the node for instantiation of VNFs
|
String |
getType()
Returns the user-defined node type
|
SortedSet<WVnfInstance> |
getVnfInstances(String type)
Returns all the VNF instances in this node, of the given type
|
boolean |
isConnectedToNetworkCore()
Returns if this node is connected to a core node (core nodes are not in the design)
|
boolean |
isUp()
Indicates if the node is up or down (failed)
|
void |
remove()
Removes this node, and all the ending and initiated links, or traversing lightpaths or service chains
|
void |
setArbitraryParamString(String s) |
void |
setAsDown()
Sets the node as down (failed), so traversing IP links or lightpaths become down
|
void |
setAsUp()
Sets the node as up (working, non-failed)
|
void |
setIsConnectedToNetworkCore(boolean isConnectedToCore)
Sets if this node is assumed to be connected to a core node (core nodes are not in the design)
|
void |
setName(String name)
Sets the node name, which must be unique among all the nodes
|
void |
setNodePositionXY(Point2D position)
Sets the (X,Y) node position
|
void |
setPoputlation(double population)
Sets the user-defined node population
|
void |
setTotalHdGB(double totalHdGB)
Sets the total hard disk size (in GBytes) available in the node for instantiation of VNFs
|
void |
setTotalNumCpus(double totalNumCpus)
Sets the number of CPUs available in the node for instantiation of VNFs
|
void |
setTotalRamGB(double totalRamGB)
Sets the total RAM (in GBytes) available in the node for instantiation of VNFs
|
void |
setType(String type)
Sets the user-defined node type
|
String |
toString() |
compareTo, equals, getAsFiber, getAsIpLayer, getAsIpLink, getAsLightpathRequest, getAsLightpathUnregenerated, getAsNode, getAsServiceChain, getAsServiceChainRequest, getAsVnfInstance, getAsWdmLayer, getId, getNet, getNetPlan, isFiber, isLayerIp, isLayerWdm, isLightpathRequest, isLightpathUnregenerated, isNode, isServiceChain, isServiceChainRequest, isVnfInstance, isWIpLink, wasRemoved
public SortedSet<WVnfInstance> getAllVnfInstances()
public String getArbitraryParamString()
public SortedSet<WFiber> getIncomingFibers()
public SortedSet<WIpLink> getIncomingIpLinks()
public SortedSet<WLightpathRequest> getIncomingLigtpathRequests()
public SortedSet<WLightpathUnregenerated> getIncomingLigtpaths()
public SortedSet<WServiceChainRequest> getIncomingServiceChainRequests()
public SortedSet<WServiceChain> getIncomingServiceChains()
public SortedSet<WLightpathUnregenerated> getInOutOrTraversingLigtpaths()
public SortedSet<WServiceChain> getInOutOrTraversingServiceChains()
public String getName()
public Node getNe()
WAbstractNetworkElement
getNe
in class WAbstractNetworkElement
public Point2D getNodePositionXY()
public double getOccupiedCpus()
public double getOccupiedHdGB()
public double getOccupiedRamGB()
public SortedSet<WFiber> getOutgoingFibers()
public SortedSet<WIpLink> getOutgoingIpLinks()
public SortedSet<WLightpathRequest> getOutgoingLigtpathRequests()
public SortedSet<WLightpathUnregenerated> getOutgoingLigtpaths()
public SortedSet<WServiceChainRequest> getOutgoingServiceChainRequests()
public SortedSet<WServiceChain> getOutgoingServiceChains()
public double getPopulation()
public double getTotalHdGB()
public double getTotalNumCpus()
public double getTotalRamGB()
public String getType()
public SortedSet<WVnfInstance> getVnfInstances(String type)
type
- see abovepublic boolean isConnectedToNetworkCore()
public boolean isUp()
public void remove()
public void setArbitraryParamString(String s)
public void setAsDown()
public void setAsUp()
public void setIsConnectedToNetworkCore(boolean isConnectedToCore)
isConnectedToCore
- see abovepublic void setName(String name)
name
- see abovepublic void setNodePositionXY(Point2D position)
position
- see abovepublic void setPoputlation(double population)
population
- see abovepublic void setTotalHdGB(double totalHdGB)
totalHdGB
- see abovepublic void setTotalNumCpus(double totalNumCpus)
totalNumCpus
- see abovepublic void setTotalRamGB(double totalRamGB)
totalRamGB
- see abovepublic void setType(String type)
type
- see aboveCopyright © 2018. All rights reserved.