adevs
Class Network

java.lang.Object
  extended by adevs.Devs
      extended by adevs.Network
Direct Known Subclasses:
Digraph, SimpleDigraph

public abstract class Network
extends Devs

This is the base class for all Network (coupled) models.


Constructor Summary
Network()
           
 
Method Summary
abstract  void getComponents(java.util.Collection<Devs> c)
          The collection must be Fill with Network's components.
abstract  void route(java.lang.Object x, Devs model, java.util.Collection<Event> r)
          Route events coming into to the model or being produced by one of its components.
 
Methods inherited from class adevs.Devs
getNativePeer, model_transition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Network

public Network()
Method Detail

getComponents

public abstract void getComponents(java.util.Collection<Devs> c)
The collection must be Fill with Network's components. Duplicates will be ignored by the simulator. Unlike the C++ simulator, the parent of a component is automatically set to be the Network whose set of components it appears in.

Parameters:
c - Empty collection to fill with the Network's components

route

public abstract void route(java.lang.Object x,
                           Devs model,
                           java.util.Collection<Event> r)
Route events coming into to the model or being produced by one of its components. The collection is filled with events whose model field is the target of its value field.

Parameters:
x - The value of the event to be routed
model - The source of the event
r - An empty collection to be filled with (target,value) pairs
See Also:
Event