|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectadevs.Devs
adevs.Network
adevs.SimpleDigraph
public class SimpleDigraph
This is a very simple digraph model for connecting single input/single output systems. Output events generated by a component model are sent to all connected models. This is, in fact, a Java implementation of the SimpleDigraph class that appears in the C++ simulation package.
Constructor Summary | |
---|---|
SimpleDigraph()
Construct a network without components. |
Method Summary | |
---|---|
void |
add(Devs model)
Add a model to the network. |
void |
couple(Devs src,
Devs dst)
Couple the source model to the destination model. |
void |
getComponents(java.util.Collection<Devs> c)
Puts the network's set of components into c. |
void |
route(java.lang.Object x,
Devs model,
java.util.Collection<Event> r)
Route an event according to the network's couplings. |
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 |
---|
public SimpleDigraph()
Method Detail |
---|
public void add(Devs model)
model
- The DEVS model that will be a component of the networkpublic void couple(Devs src, Devs dst)
public void getComponents(java.util.Collection<Devs> c)
getComponents
in class Network
c
- A Collection to which will be added the model's componentspublic void route(java.lang.Object x, Devs model, java.util.Collection<Event> r)
route
in class Network
x
- The value of the event to be routedmodel
- The source of the eventr
- An empty collection to be filled with (target,value) pairsNetwork
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |