be.ac.ulg.montefiore.run.totem.domain.model.impl
Class NodeInterfaceImpl

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.domain.model.jaxb.impl.NodeInterfaceImpl
      extended by be.ac.ulg.montefiore.run.totem.domain.model.impl.NodeInterfaceImpl
All Implemented Interfaces:
DomainElement, NodeInterface, UnmarshallableObject, ValidatableObject, XMLSerializable, com.sun.xml.bind.JAXBObject

public class NodeInterfaceImpl
extends NodeInterfaceImpl
implements NodeInterface

Represents an interface of a node.

Creation date: 07-f�vr.-2006

Author:
Jean Lepropre (lepropre@run.montefiore.ulg.ac.be)

Nested Class Summary
 
Nested classes/interfaces inherited from class be.ac.ulg.montefiore.run.totem.domain.model.jaxb.impl.NodeInterfaceImpl
NodeInterfaceImpl.IpTypeImpl, NodeInterfaceImpl.Unmarshaller
 
Nested classes/interfaces inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.jaxb.NodeInterface
NodeInterface.IpType
 
Field Summary
 
Fields inherited from class be.ac.ulg.montefiore.run.totem.domain.model.jaxb.impl.NodeInterfaceImpl
_Id, _Ip, _Status, version
 
Fields inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.NodeInterface
STATUS_DOWN, STATUS_UP
 
Constructor Summary
NodeInterfaceImpl()
           
NodeInterfaceImpl(Domain domain, Node node, java.lang.String nodeInterfaceId)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getIP()
           
 java.lang.String getIPMask()
           
 int getNodeInterfaceStatus()
           
 int hashCode()
           
 void setDomain(Domain domain)
           
 void setElementId(java.lang.String id)
          Sets the id of the element.
 void setIP(java.lang.String address)
           
 void setIPMask(java.lang.String address, int maskLength)
           
 void setNode(Node node)
           
 void setNodeInterfaceStatus(int status)
           
 
Methods inherited from class be.ac.ulg.montefiore.run.totem.domain.model.jaxb.impl.NodeInterfaceImpl
createRawValidator, createUnmarshaller, getId, getIp, getPrimaryInterface, getStatus, isSetId, isSetIp, isSetStatus, serializeAttributes, serializeBody, serializeURIs, setId, setIp, setStatus, unsetId, unsetIp, unsetStatus
 
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.DomainElement
getId
 

Constructor Detail

NodeInterfaceImpl

public NodeInterfaceImpl()

NodeInterfaceImpl

public NodeInterfaceImpl(Domain domain,
                         Node node,
                         java.lang.String nodeInterfaceId)
Method Detail

setDomain

public void setDomain(Domain domain)

setNode

public void setNode(Node node)

getNodeInterfaceStatus

public int getNodeInterfaceStatus()

setNodeInterfaceStatus

public void setNodeInterfaceStatus(int status)
                            throws StatusTypeException
Throws:
StatusTypeException

getIP

public java.lang.String getIP()
                       throws NotInitialisedException
Throws:
NotInitialisedException

getIPMask

public java.lang.String getIPMask()
                           throws NotInitialisedException
Throws:
NotInitialisedException

setIP

public void setIP(java.lang.String address)
           throws IPAddressFormatException
Throws:
IPAddressFormatException

setIPMask

public void setIPMask(java.lang.String address,
                      int maskLength)
               throws IPAddressFormatException
Throws:
IPAddressFormatException

equals

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

hashCode

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

setElementId

public void setElementId(java.lang.String id)
                  throws IdException
Description copied from interface: DomainElement
Sets the id of the element.

Specified by:
setElementId in interface DomainElement
Throws:
IdException


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