|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.domain.model.jaxb.impl.NodeImpl
be.ac.ulg.montefiore.run.totem.domain.model.impl.NodeImpl
public class NodeImpl
Represent a Node in a Domain
Creation date: 19-Jan-2005 15:46:33
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class be.ac.ulg.montefiore.run.totem.domain.model.jaxb.impl.NodeImpl |
|---|
NodeImpl.InterfacesTypeImpl, NodeImpl.LocationTypeImpl, NodeImpl.Unmarshaller |
| Nested classes/interfaces inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.Node |
|---|
Node.Type |
| Nested classes/interfaces inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.jaxb.Node |
|---|
Node.InterfacesType, Node.LocationType |
| Field Summary |
|---|
| Fields inherited from class be.ac.ulg.montefiore.run.totem.domain.model.jaxb.impl.NodeImpl |
|---|
_Description, _Id, _Interfaces, _Location, _Rid, _Status, _Type, version |
| Fields inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.Node |
|---|
STATUS_DOWN, STATUS_UP |
| Constructor Summary | |
|---|---|
NodeImpl()
|
|
NodeImpl(Domain domain,
java.lang.String nodeId)
Create a node |
|
| Method Summary | |
|---|---|
void |
addInLink(Link l)
Initialisation method: Add a link to the list of incoming links. |
void |
addNodeInterface(NodeInterface nodeInterface)
|
void |
addOutLink(Link l)
Initialisation method: Add a link to the list of outcoming links. |
void |
delInLink(Link l)
Initialisation method: Remove a link from the list of incoming links. |
void |
delOutLink(Link l)
Initialisation method: Remove a link from the list of outcoming links. |
boolean |
equals(java.lang.Object o)
|
java.util.List<Link> |
getAllInLink()
Return the list of the links that ends at this node. |
java.util.List<java.lang.String> |
getallIPs()
|
java.util.List<Link> |
getAllOutLink()
Return the list of the links that begins at this node. |
BgpRouter |
getBgpRouter()
Returns the BGP router associated with this node. |
Domain |
getDomain()
returns the associated domain |
java.util.List<Link> |
getInLink()
Return the list of the links that ends at this node and for which status is UP. |
float |
getLatitude()
Get the latitude of a node and 0 if not defined |
float |
getLongitude()
Get the longitude of a node and 0 if not defined |
NodeInterface |
getNodeInterface(java.lang.String nodeInterfaceId)
|
NodeInterface |
getNodeInterfaceByIP(java.lang.String nodeInterfaceIP)
|
java.util.List<NodeInterface> |
getNodeInterfaces()
|
int |
getNodeStatus()
Get the status of the node |
Node.Type |
getNodeType()
Gets the type of the node. |
java.util.List<Link> |
getOutLink()
Return the list of the links that begins at this node and for which status is UP. |
int |
hashCode()
|
void |
init(Domain domain)
|
void |
setDomain(Domain domain)
Set the domain |
void |
setElementId(java.lang.String id)
Sets the node id to the given id. |
void |
setLatitude(float latitude)
Set the latitude of a node |
void |
setLongitude(float longitude)
Set the longitude of a node |
void |
setNodeStatus(int status)
Set the status of the node |
void |
setNodeStatus(java.lang.String status)
|
void |
setNodeType(Node.Type type)
Sets the type of the node. |
| Methods inherited from class be.ac.ulg.montefiore.run.totem.domain.model.jaxb.impl.NodeImpl |
|---|
createRawValidator, createUnmarshaller, getDescription, getId, getInterfaces, getLocation, getPrimaryInterface, getRid, getStatus, getType, isSetDescription, isSetId, isSetInterfaces, isSetLocation, isSetRid, isSetStatus, isSetType, serializeAttributes, serializeBody, serializeURIs, setDescription, setId, setInterfaces, setLocation, setRid, setStatus, setType, unsetDescription, unsetId, unsetInterfaces, unsetLocation, unsetRid, unsetStatus, unsetType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.Node |
|---|
getDescription, getRid, setDescription, setRid |
| Methods inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.DomainElement |
|---|
getId |
| Constructor Detail |
|---|
public NodeImpl()
public NodeImpl(Domain domain,
java.lang.String nodeId)
domain - | Method Detail |
|---|
public void init(Domain domain)
public void setDomain(Domain domain)
domain - public void addInLink(Link l)
l - public void addOutLink(Link l)
l - public void delInLink(Link l)
l - public void delOutLink(Link l)
l - public Node.Type getNodeType()
Node.Type. Type.EDGE if not set.public void setNodeType(Node.Type type)
type - public int getNodeStatus()
public void setNodeStatus(int status)
throws StatusTypeException
status - Node.STATUS_DOWN or Node.STATUS_UP
StatusTypeException - if status is neither Node.STATUS_DOWN nor Node.STATUS_UP
public void setNodeStatus(java.lang.String status)
throws StatusTypeException
StatusTypeExceptionpublic java.util.List<Link> getOutLink()
public java.util.List<Link> getInLink()
public java.util.List<Link> getAllOutLink()
public java.util.List<Link> getAllInLink()
public float getLongitude()
public float getLatitude()
public void setLongitude(float longitude)
longitude - public void setLatitude(float latitude)
latitude - public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic BgpRouter getBgpRouter()
public java.util.List<java.lang.String> getallIPs()
public NodeInterface getNodeInterface(java.lang.String nodeInterfaceId)
throws NodeInterfaceNotFoundException
NodeInterfaceNotFoundException
public NodeInterface getNodeInterfaceByIP(java.lang.String nodeInterfaceIP)
throws NodeInterfaceNotFoundException
NodeInterfaceNotFoundExceptionpublic java.util.List<NodeInterface> getNodeInterfaces()
public void addNodeInterface(NodeInterface nodeInterface)
throws NodeInterfaceAlreadyExistException
NodeInterfaceAlreadyExistException
public void setElementId(java.lang.String id)
throws IdException
setElementId in interface DomainElementid -
IdException - If the node is in the domainpublic Domain getDomain()
DomainElement
getDomain in interface DomainElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||