public class Digraph extends Network
Modifier and Type | Class and Description |
---|---|
static class |
Digraph.PortValue
Input and output for the Digraph and its components
must be PortValue objects.
|
Constructor and Description |
---|
Digraph()
Construct a network without components.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getNativePeer, model_transition
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 components