com.banda.network.domain
Class AbstractTopology

java.lang.Object
  extended by com.banda.core.domain.DomainObject<Long>
      extended by com.banda.core.domain.TechnicalDomainObject
          extended by com.banda.network.domain.AbstractTopology
All Implemented Interfaces:
KeyHolder<Long>, Serializable, Comparable<AbstractTopology>
Direct Known Subclasses:
FlatTopology, LayeredTopology, TemplateTopology

public abstract class AbstractTopology
extends TechnicalDomainObject
implements Comparable<AbstractTopology>

Since:
2012
Author:
© Peter Banda
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.banda.core.domain.DomainObject
DomainObject.DomainObjectKeyComparator<K extends Serializable & Comparable<K>>
 
Constructor Summary
AbstractTopology()
           
 
Method Summary
 void addNetwork(Network<?> network)
           
 int compareTo(AbstractTopology anotherTopology)
           
 void copyFrom(AbstractTopology anotherTopology)
           
 Integer getIndex()
           
abstract  Collection<AbstractTopology> getLayers()
           
 String getName()
           
 Collection<Network<?>> getNetworks()
           
abstract  List<TopologicalNode> getNodes()
           
 AbstractTopology getParentTopology()
           
 Date getTimeCreated()
           
 boolean hasLayers()
           
 boolean hasNodes()
           
abstract  boolean isTemplate()
           
 void removeNetwork(Network<?> network)
           
 void setIndex(Integer index)
           
 void setName(String name)
           
protected  void setNetworks(Collection<Network<?>> networks)
           
 void setParentTopology(AbstractTopology parentTopology)
           
 void setTimeCreated(Date timeCreated)
           
 String toString()
           
 
Methods inherited from class com.banda.core.domain.TechnicalDomainObject
getId, getKey, getVersion, setId, setKey, setVersion
 
Methods inherited from class com.banda.core.domain.DomainObject
copyFrom, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractTopology

public AbstractTopology()
Method Detail

getIndex

public Integer getIndex()

setIndex

public void setIndex(Integer index)

getName

public String getName()

setName

public void setName(String name)

getTimeCreated

public Date getTimeCreated()

setTimeCreated

public void setTimeCreated(Date timeCreated)

getNetworks

public Collection<Network<?>> getNetworks()

setNetworks

protected void setNetworks(Collection<Network<?>> networks)

addNetwork

public void addNetwork(Network<?> network)

removeNetwork

public void removeNetwork(Network<?> network)

getParentTopology

public AbstractTopology getParentTopology()

setParentTopology

public void setParentTopology(AbstractTopology parentTopology)

hasLayers

public boolean hasLayers()

getLayers

public abstract Collection<AbstractTopology> getLayers()

hasNodes

public boolean hasNodes()

getNodes

public abstract List<TopologicalNode> getNodes()

isTemplate

public abstract boolean isTemplate()

compareTo

public int compareTo(AbstractTopology anotherTopology)
Specified by:
compareTo in interface Comparable<AbstractTopology>

copyFrom

public void copyFrom(AbstractTopology anotherTopology)

toString

public String toString()
Overrides:
toString in class DomainObject<Long>
See Also:
Object.toString()


Copyright © 2012. All Rights Reserved.