public class FanOut
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Label |
from
the 1 in the 1:m
|
private java.util.List<Label> |
to
the m in the 1:m
|
Constructor and Description |
---|
FanOut(Label from)
construct a new empty link
|
FanOut(Label from,
Label to)
construct a new link with one element in the target set
|
FanOut(Label from,
Label to1,
Label to2)
construct a new link with two elements in the target set
|
Modifier and Type | Method and Description |
---|---|
void |
append(Label to)
add a new link to the target set
|
Label |
getFrom() |
Label |
getTo(int i)
retrieve alink from the target set by index
|
int |
getToCount()
retrieve the size of the target set
|
java.util.Iterator<Label> |
iterator()
obtain an iterator over the target set
|
private Label from
private java.util.List<Label> to
public FanOut(Label from)
from
- public FanOut(Label from, Label to)
from
- to
- public FanOut(Label from, Label to1, Label to2)
from
- to1
- to2
- public Label getFrom()
public void append(Label to)
to
- public Label getTo(int i)
i
- public int getToCount()
public java.util.Iterator<Label> iterator()