|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectadevs.Devs
adevs.Network
adevs.Digraph
public class Digraph
This is a digraph model for connecting multiple input/multiple output systems. This Digraph is a Java implementation of the SimpleDigraph class that appears in the C++ simulation package.
Nested Class Summary | |
---|---|
static class |
Digraph.PortValue
Input and output for the Digraph and its components must be PortValue objects. |
Constructor Summary | |
---|---|
Digraph()
Construct a network without components. |
Method Summary | |
---|---|
void |
add(Devs model)
Add a model to the network. |
void |
couple(Devs src,
int src_port,
Devs dst,
int dst_port)
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 Digraph()
Method Detail |
---|
public void add(Devs model)
model
- The DEVS model that will be a component of the networkpublic void couple(Devs src, int src_port, Devs dst, int dst_port)
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 |