public class Device extends NetworkElement
NetworkElement.LayerComparatorLayerConstant.Action, LayerConstant.AdaptationProperty, LayerConstant.AvailableLabelSet, LayerConstant.ConnectionType, LayerConstant.Direction, LayerConstant.ElementObjectProperty, LayerConstant.LabelP, LayerConstant.Layer, LayerConstant.Prefix, LayerConstant.UsedLabelSet| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Integer |
actionCount |
protected java.util.LinkedList<SwitchingAction> |
actionList |
protected java.lang.String |
availableLabelSet |
protected java.lang.Integer |
degree |
protected java.lang.Boolean |
depend |
protected java.lang.String |
direction |
protected java.lang.String |
downLocalUri |
protected java.lang.String |
downNeighbourUri |
protected java.lang.Boolean |
isAllocatable |
protected java.lang.Boolean |
isLabelProducer |
protected java.util.HashMap<java.lang.String,java.util.LinkedList<LabelSet>> |
labelSets |
protected java.lang.Boolean |
layerLabelPrimary |
protected java.lang.String |
NetUUID |
protected java.lang.Float |
staticLabel |
protected java.lang.String |
swappingCapability |
protected java.util.LinkedList<SwitchMatrix> |
switchingMatrix |
protected java.lang.String |
tunnelingCapability |
protected java.lang.String |
upLocalUri |
protected java.lang.String |
upNeighbourUri |
atLayer, castType, clientInterface, GUID, hostName, isModify, logger, managementIP, model, modifyVersion, name, numInterface, resourcesMap, resourceType, sn, uricolor| Constructor and Description |
|---|
Device() |
Device(com.hp.hpl.jena.ontology.OntModel m,
com.hp.hpl.jena.ontology.OntResource rs) |
Device(com.hp.hpl.jena.ontology.OntModel m,
com.hp.hpl.jena.rdf.model.Resource rs) |
Device(com.hp.hpl.jena.ontology.OntModel m,
java.lang.String u,
java.lang.String n) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSwitchingAction(SwitchingAction action) |
int |
compareTo(java.lang.Object o) |
java.util.LinkedList<SwitchingAction> |
findUNIInterface(SwitchingAction action) |
int |
getActionCount() |
java.util.LinkedList<SwitchingAction> |
getActionList() |
java.lang.String |
getAvailableLabelSet() |
SwitchingAction |
getDefaultSwitchingAction() |
int |
getDegree() |
java.lang.String |
getDirection() |
com.hp.hpl.jena.ontology.OntResource |
getDownLocal(com.hp.hpl.jena.ontology.OntModel m) |
java.lang.String |
getDownLocalUri() |
com.hp.hpl.jena.ontology.OntResource |
getDownNeighbour(com.hp.hpl.jena.ontology.OntModel m) |
java.lang.String |
getDownNeighbourUri() |
java.util.LinkedList<LabelSet> |
getLabelSet(java.lang.String rType) |
java.util.HashMap<java.lang.String,java.util.LinkedList<LabelSet>> |
getLabelSets() |
java.lang.Boolean |
getLayerLabelPrimary() |
java.lang.String |
getNetUUID() |
float |
getStaticLabel() |
java.lang.String |
getSwappingCapability() |
java.util.LinkedList<SwitchMatrix> |
getSwitchingMatrix() |
SwitchMatrix |
getSwitchingMatrix(int i) |
java.lang.String |
getTunnelingCapability() |
com.hp.hpl.jena.ontology.OntResource |
getUpLocal(com.hp.hpl.jena.ontology.OntModel m) |
java.lang.String |
getUpLocalUri() |
com.hp.hpl.jena.ontology.OntResource |
getUpNeighbour(com.hp.hpl.jena.ontology.OntModel m) |
java.lang.String |
getUpNeighbourUri() |
boolean |
isAllocatable() |
boolean |
isDepend() |
boolean |
isLabelProducer() |
void |
print(org.apache.log4j.Logger logger) |
void |
processUNIInterface(java.lang.String layer) |
void |
removeSwitchingAction(int key) |
void |
setActionCount(int actionCount) |
void |
setActionList(java.util.LinkedList<SwitchingAction> actionList) |
void |
setAllocatable(boolean isAllocatable) |
void |
setAvailableLabelSet(java.util.BitSet bitSet) |
void |
setDegree() |
void |
setDegree(int degree) |
void |
setDepend(boolean depend) |
void |
setDirection(java.lang.String direction) |
void |
setDownLocal(com.hp.hpl.jena.ontology.OntResource downLocal) |
void |
setDownLocalUri(java.lang.String downLocalUri) |
void |
setDownNeighbour(com.hp.hpl.jena.ontology.OntResource downNeighbour) |
void |
setDownNeighbourUri(java.lang.String downNeighbourUri) |
void |
setLabelProducer(boolean isLabelProducer) |
void |
setLabelSets(java.util.HashMap<java.lang.String,java.util.LinkedList<LabelSet>> labelSets) |
void |
setLayerLabelPrimary(java.lang.Boolean layerLabelPrimary) |
void |
setNetUUID(java.lang.String netUUID) |
void |
setParameters(com.hp.hpl.jena.ontology.OntModel ontModel,
com.hp.hpl.jena.ontology.OntResource rs_ont) |
void |
setResource(com.hp.hpl.jena.ontology.OntResource resource)
If the model of the element was not set in the constructor, this method will set it based on the model of the
resource that is passed in
|
void |
setStaticLabel(float staticLabel) |
void |
setSwappingCapability(java.lang.String swappingCapability) |
void |
setSwitchingMatrix(java.util.LinkedList<SwitchMatrix> switchingMatrix) |
void |
setSwitchMatrix(SwitchMatrix matrix) |
void |
setTunnelingCapability(java.lang.String tunnelingCapability) |
void |
setUpLocal(com.hp.hpl.jena.ontology.OntResource upLocal) |
void |
setUpLocalUri(java.lang.String upLocalUri) |
void |
setUpNeighbour(com.hp.hpl.jena.ontology.OntResource upNeighbour) |
void |
setUpNeighbourUri(java.lang.String upNeighbourUri) |
java.lang.String |
toString() |
addClientInterface, addResource, equals, getAtLayer, getCastType, getClientInterface, getClientInterfaceByURI, getDefaultClientInterface, getGUID, getHostName, getInDomain, getModel, getModifyVersion, getName, getNumInterface, getNumUnits, getRank, getResource, getResource, getResources, getResourcesMap, getResourceType, getSn, getType, getURI, isModify, print, setAtLayer, setCastType, setClientInterface, setGUID, setHostName, setInDomain, setManagementIP, setModel, setModify, setModifyVersion, setName, setNumInterface, setNumUnits, setRank, setResourcesMap, setResourceType, setSn, setType, setURIprotected java.util.LinkedList<SwitchMatrix> switchingMatrix
protected java.util.LinkedList<SwitchingAction> actionList
protected java.lang.Integer actionCount
protected java.lang.String direction
protected java.lang.Integer degree
protected java.lang.Boolean isLabelProducer
protected java.lang.Boolean layerLabelPrimary
protected java.lang.String swappingCapability
protected java.lang.String tunnelingCapability
protected java.lang.Boolean depend
protected java.util.HashMap<java.lang.String,java.util.LinkedList<LabelSet>> labelSets
protected java.lang.Float staticLabel
protected java.lang.String availableLabelSet
protected java.lang.Boolean isAllocatable
protected java.lang.String NetUUID
protected java.lang.String upNeighbourUri
protected java.lang.String upLocalUri
protected java.lang.String downNeighbourUri
protected java.lang.String downLocalUri
public Device(com.hp.hpl.jena.ontology.OntModel m,
java.lang.String u,
java.lang.String n)
public Device(com.hp.hpl.jena.ontology.OntModel m,
com.hp.hpl.jena.ontology.OntResource rs)
public Device(com.hp.hpl.jena.ontology.OntModel m,
com.hp.hpl.jena.rdf.model.Resource rs)
public Device()
public java.lang.String toString()
toString in class NetworkElementpublic void setParameters(com.hp.hpl.jena.ontology.OntModel ontModel,
com.hp.hpl.jena.ontology.OntResource rs_ont)
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparablecompareTo in class NetworkElementpublic void processUNIInterface(java.lang.String layer)
public java.util.LinkedList<SwitchingAction> findUNIInterface(SwitchingAction action)
public void print(org.apache.log4j.Logger logger)
print in class NetworkElementpublic SwitchingAction getDefaultSwitchingAction()
public void addSwitchingAction(SwitchingAction action)
public void removeSwitchingAction(int key)
public int getDegree()
public void setDegree()
public boolean isLabelProducer()
public void setLabelProducer(boolean isLabelProducer)
public java.lang.Boolean getLayerLabelPrimary()
public void setLayerLabelPrimary(java.lang.Boolean layerLabelPrimary)
public java.lang.String getSwappingCapability()
public void setSwappingCapability(java.lang.String swappingCapability)
public java.lang.String getTunnelingCapability()
public void setTunnelingCapability(java.lang.String tunnelingCapability)
public boolean isDepend()
public void setDepend(boolean depend)
public void setDegree(int degree)
public com.hp.hpl.jena.ontology.OntResource getDownNeighbour(com.hp.hpl.jena.ontology.OntModel m)
public void setDownNeighbour(com.hp.hpl.jena.ontology.OntResource downNeighbour)
public com.hp.hpl.jena.ontology.OntResource getUpNeighbour(com.hp.hpl.jena.ontology.OntModel m)
public void setUpNeighbour(com.hp.hpl.jena.ontology.OntResource upNeighbour)
public java.lang.String getUpNeighbourUri()
public void setUpNeighbourUri(java.lang.String upNeighbourUri)
public java.lang.String getUpLocalUri()
public void setUpLocalUri(java.lang.String upLocalUri)
public java.lang.String getDownNeighbourUri()
public void setDownNeighbourUri(java.lang.String downNeighbourUri)
public java.lang.String getDownLocalUri()
public void setDownLocalUri(java.lang.String downLocalUri)
public com.hp.hpl.jena.ontology.OntResource getUpLocal(com.hp.hpl.jena.ontology.OntModel m)
public void setUpLocal(com.hp.hpl.jena.ontology.OntResource upLocal)
public com.hp.hpl.jena.ontology.OntResource getDownLocal(com.hp.hpl.jena.ontology.OntModel m)
public void setDownLocal(com.hp.hpl.jena.ontology.OntResource downLocal)
public void setSwitchMatrix(SwitchMatrix matrix)
public SwitchMatrix getSwitchingMatrix(int i)
public java.util.LinkedList<SwitchMatrix> getSwitchingMatrix()
public java.util.LinkedList<SwitchingAction> getActionList()
public int getActionCount()
public void setActionCount(int actionCount)
public void setActionList(java.util.LinkedList<SwitchingAction> actionList)
public void setSwitchingMatrix(java.util.LinkedList<SwitchMatrix> switchingMatrix)
public java.lang.String getDirection()
public void setDirection(java.lang.String direction)
public void setResource(com.hp.hpl.jena.ontology.OntResource resource)
NetworkElementsetResource in class NetworkElementresource - rpublic java.util.HashMap<java.lang.String,java.util.LinkedList<LabelSet>> getLabelSets()
public void setLabelSets(java.util.HashMap<java.lang.String,java.util.LinkedList<LabelSet>> labelSets)
public java.util.LinkedList<LabelSet> getLabelSet(java.lang.String rType)
public float getStaticLabel()
public void setStaticLabel(float staticLabel)
public java.lang.String getAvailableLabelSet()
public void setAvailableLabelSet(java.util.BitSet bitSet)
public boolean isAllocatable()
public void setAllocatable(boolean isAllocatable)
public java.lang.String getNetUUID()
public void setNetUUID(java.lang.String netUUID)
Copyright © 2018 RENCI. All Rights Reserved.