public class TVGPlayer extends Object implements ClockListener
Modifier and Type | Field and Description |
---|---|
protected Integer |
period |
protected Topology |
tp |
protected TVG |
tvg |
Constructor and Description |
---|
TVGPlayer(TVG tvg,
Topology tp)
Plays the specified time-varying graph on the specified topology.
|
TVGPlayer(TVG tvg,
Topology tp,
Integer period)
Plays forever the specified time-varying graph on the specified topology
by taking all dates modulo the specified period.
|
Modifier and Type | Method and Description |
---|---|
void |
onClock()
Called periodically by the central scheduler.
|
void |
start() |
protected void |
updateLinks() |
public TVGPlayer(TVG tvg, Topology tp)
tvg
- the time-varying graphtp
- the target topologypublic TVGPlayer(TVG tvg, Topology tp, Integer period)
tvg
- the time-varying graphtp
- the target topologyperiod
- the period after which the player should be restartedpublic void start()
public void onClock()
ClockListener
onClock
in interface ClockListener
protected void updateLinks()