be.ac.ulg.montefiore.run.totem.domain.model
Interface Node

All Superinterfaces:
DomainElement

public interface Node
extends DomainElement

Represents a Node in a Domain.

Creation date : 19-Jan-2005 15:46:33

Author:
Fabian Skivee (skivee@run.montefiore.ulg.ac.be), Bruno Quoitin (bqu@info.ucl.ac.be)

Nested Class Summary
static class Node.Type
           
 
Field Summary
static int STATUS_DOWN
           
static int STATUS_UP
           
 
Method Summary
 void addNodeInterface(NodeInterface nodeInterface)
           
 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()
           
 java.lang.String getDescription()
           
 java.util.List<Link> getInLink()
          Return the list of the links that ends at this node and for which status is UP.
 float getLatitude()
           
 float getLongitude()
           
 NodeInterface getNodeInterface(java.lang.String nodeInterfaceId)
           
 NodeInterface getNodeInterfaceByIP(java.lang.String nodeInterfaceIP)
           
 java.util.List<NodeInterface> getNodeInterfaces()
           
 int getNodeStatus()
           
 Node.Type getNodeType()
           
 java.util.List<Link> getOutLink()
          Return the list of the links that begins at this node and for which status is UP.
 java.lang.String getRid()
           
 int hashCode()
           
 void setDescription(java.lang.String description)
           
 void setLatitude(float latitude)
           
 void setLongitude(float longitude)
           
 void setNodeStatus(int status)
           
 void setNodeStatus(java.lang.String status)
           
 void setNodeType(Node.Type type)
           
 void setRid(java.lang.String rid)
           
 
Methods inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.DomainElement
getId, setElementId
 

Field Detail

STATUS_UP

static final int STATUS_UP
See Also:
Constant Field Values

STATUS_DOWN

static final int STATUS_DOWN
See Also:
Constant Field Values
Method Detail

getRid

java.lang.String getRid()

setRid

void setRid(java.lang.String rid)

getallIPs

java.util.List<java.lang.String> getallIPs()

getNodeStatus

int getNodeStatus()

setNodeStatus

void setNodeStatus(int status)
                   throws StatusTypeException
Throws:
StatusTypeException

setNodeStatus

void setNodeStatus(java.lang.String status)
                   throws StatusTypeException
Throws:
StatusTypeException

getAllOutLink

java.util.List<Link> getAllOutLink()
Return the list of the links that begins at this node.

Returns:
the list of the links that arrives at this node

getAllInLink

java.util.List<Link> getAllInLink()
Return the list of the links that ends at this node.

Returns:
the list of the links that arrives at this node

getOutLink

java.util.List<Link> getOutLink()
Return the list of the links that begins at this node and for which status is UP.

Returns:
the list of the links that arrives at this node

getInLink

java.util.List<Link> getInLink()
Return the list of the links that ends at this node and for which status is UP.

Returns:
the list of the links that arrives at this node

getLongitude

float getLongitude()

getLatitude

float getLatitude()

setLongitude

void setLongitude(float longitude)

setLatitude

void setLatitude(float latitude)

equals

boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

int hashCode()
Overrides:
hashCode in class java.lang.Object

getNodeType

Node.Type getNodeType()

setNodeType

void setNodeType(Node.Type type)

getDescription

java.lang.String getDescription()

setDescription

void setDescription(java.lang.String description)

getBgpRouter

BgpRouter getBgpRouter()

getNodeInterface

NodeInterface getNodeInterface(java.lang.String nodeInterfaceId)
                               throws NodeInterfaceNotFoundException
Throws:
NodeInterfaceNotFoundException

getNodeInterfaceByIP

NodeInterface getNodeInterfaceByIP(java.lang.String nodeInterfaceIP)
                                   throws NodeInterfaceNotFoundException
Throws:
NodeInterfaceNotFoundException

getNodeInterfaces

java.util.List<NodeInterface> getNodeInterfaces()

addNodeInterface

void addNodeInterface(NodeInterface nodeInterface)
                      throws NodeInterfaceAlreadyExistException
Throws:
NodeInterfaceAlreadyExistException


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.