com.banda.network.domain
Class Topology

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

public abstract class Topology
extends TechnicalDomainObject
implements Comparable<Topology>

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
Topology()
           
 
Method Summary
 void addNetwork(Network<?> network)
           
 int compareTo(Topology anotherTopology)
           
 void copyFrom(Topology anotherTopology)
           
abstract  List<TopologicalNode> getAllNodes()
           
 List<TopologicalNode> getBiasNodes()
           
 Integer getIndex()
           
abstract  Collection<Topology> getLayers()
           
 String getName()
           
 Collection<Network<?>> getNetworks()
           
 List<TopologicalNode> getNonBiasNodes()
           
 Topology 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(Topology parentTopology)
           
 void setTimeCreated(Date timeCreated)
           
abstract  boolean supportLayers()
           
 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

Topology

public Topology()
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 Topology getParentTopology()

setParentTopology

public void setParentTopology(Topology parentTopology)

supportLayers

public abstract boolean supportLayers()

hasLayers

public boolean hasLayers()

getLayers

public abstract Collection<Topology> getLayers()

hasNodes

public boolean hasNodes()

getAllNodes

public abstract List<TopologicalNode> getAllNodes()

getNonBiasNodes

public List<TopologicalNode> getNonBiasNodes()

getBiasNodes

public List<TopologicalNode> getBiasNodes()

isTemplate

public abstract boolean isTemplate()

compareTo

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

copyFrom

public void copyFrom(Topology anotherTopology)

toString

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


Copyright © 2013. All Rights Reserved.