net.clackrouter.topology.core
Class TopologyModel.Link

java.lang.Object
  extended by net.clackrouter.topology.core.TopologyModel.Link
Enclosing class:
TopologyModel

public static class TopologyModel.Link
extends java.lang.Object

Represents an link between two hosts inside a topology.


Field Summary
 TopologyModel.Host host1
           
 TopologyModel.Host host2
           
 TopologyModel.Interface iface1
           
 TopologyModel.Interface iface2
           
 boolean isEnabled
           
 java.util.ArrayList listeners
           
 
Constructor Summary
TopologyModel.Link(TopologyModel.Host h1, TopologyModel.Interface i1, TopologyModel.Host h2, TopologyModel.Interface i2, boolean up)
           
 
Method Summary
 void addListener(TopoWire w)
           
 void alert()
           
 void fireListeners()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host1

public TopologyModel.Host host1

host2

public TopologyModel.Host host2

iface1

public TopologyModel.Interface iface1

iface2

public TopologyModel.Interface iface2

isEnabled

public boolean isEnabled

listeners

public java.util.ArrayList listeners
Constructor Detail

TopologyModel.Link

public TopologyModel.Link(TopologyModel.Host h1,
                          TopologyModel.Interface i1,
                          TopologyModel.Host h2,
                          TopologyModel.Interface i2,
                          boolean up)
Method Detail

addListener

public void addListener(TopoWire w)

fireListeners

public void fireListeners()

alert

public void alert()