be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.topEdit.model
Class DomainDecoratorImpl

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.topEdit.model.DomainDecoratorImpl
All Implemented Interfaces:
DomainDecorator

public class DomainDecoratorImpl
extends java.lang.Object
implements DomainDecorator

Add some functionnalities to a JAXB domain. The old functionnalities of the domain are not directly accessible from this class but by can be accessed by using getDomain().

Author:
Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)
To do:
TODO: Maybe implement an index of nodes and links

Creation date: 3/10/2007


Constructor Summary
DomainDecoratorImpl(Domain domain)
           
 
Method Summary
 void addLink(LinkDecorator linkDecorator)
          Add a link to the domain
 void addLinkIgp(LinkIgp linkIgp)
          add the igp part of a link to the domain
 void addNode(Node node)
          add a node to the domain
 java.util.List<LinkDecorator> getAllLinks()
           
 Domain getDomain()
          returns the associated jaxb domain
 LinkDecorator getLink(java.lang.String id)
          returns a link identified by id if exists, null otherwise
 Node getNode(java.lang.String id)
          returns the node identified by id if exists, null otherwise
 void removeLink(LinkDecorator linkDecorator)
          remove a link from the domain (the link and the igp of linkdecorator)
 void removeLinkIgp(LinkIgp linkIgp)
          remove the igp part of a link
 void removeNode(Node node)
          remove a node from the domain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainDecoratorImpl

public DomainDecoratorImpl(Domain domain)
Method Detail

getDomain

public Domain getDomain()
Description copied from interface: DomainDecorator
returns the associated jaxb domain

Specified by:
getDomain in interface DomainDecorator
Returns:

getLink

public LinkDecorator getLink(java.lang.String id)
Description copied from interface: DomainDecorator
returns a link identified by id if exists, null otherwise

Specified by:
getLink in interface DomainDecorator
Returns:

getNode

public Node getNode(java.lang.String id)
Description copied from interface: DomainDecorator
returns the node identified by id if exists, null otherwise

Specified by:
getNode in interface DomainDecorator
Returns:

addLink

public void addLink(LinkDecorator linkDecorator)
Description copied from interface: DomainDecorator
Add a link to the domain

Specified by:
addLink in interface DomainDecorator

addLinkIgp

public void addLinkIgp(LinkIgp linkIgp)
Description copied from interface: DomainDecorator
add the igp part of a link to the domain

Specified by:
addLinkIgp in interface DomainDecorator

removeLink

public void removeLink(LinkDecorator linkDecorator)
Description copied from interface: DomainDecorator
remove a link from the domain (the link and the igp of linkdecorator)

Specified by:
removeLink in interface DomainDecorator

removeLinkIgp

public void removeLinkIgp(LinkIgp linkIgp)
Description copied from interface: DomainDecorator
remove the igp part of a link

Specified by:
removeLinkIgp in interface DomainDecorator

getAllLinks

public java.util.List<LinkDecorator> getAllLinks()
Specified by:
getAllLinks in interface DomainDecorator

addNode

public void addNode(Node node)
Description copied from interface: DomainDecorator
add a node to the domain

Specified by:
addNode in interface DomainDecorator

removeNode

public void removeNode(Node node)
Description copied from interface: DomainDecorator
remove a node from the domain

Specified by:
removeNode in interface DomainDecorator


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