public final class TimelinePublisher
extends java.lang.Object
SymbolicTimelines from components and publishes them as images.| Constructor and Description |
|---|
TimelinePublisher(ActivityNetworkSolver ans,
Bounds bounds,
boolean slidingWindow,
java.lang.String... components)
Deprecated.
|
TimelinePublisher(ActivityNetworkSolver ans,
Bounds bounds,
java.lang.String... components)
Deprecated.
|
TimelinePublisher(ActivityNetworkSolver ans,
java.lang.String... components)
Deprecated.
|
TimelinePublisher(ConstraintNetwork an,
Bounds bounds,
boolean slidingWindow,
java.lang.String... components) |
TimelinePublisher(ConstraintNetwork an,
Bounds bounds,
java.lang.String... components) |
TimelinePublisher(ConstraintNetwork an,
java.lang.String... components) |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(boolean block,
boolean skip)
Publish the
SymbolicTimelines. |
void |
registerTimelineVisualizer(TimelineVisualizer viz)
|
void |
setComponents(java.lang.String... components)
Set the list of components for which to publish
SymbolicTimelines. |
void |
setMarkingsToExclude(java.lang.Object... markingsToExclude) |
void |
setShowLabels(boolean showlabels) |
void |
setTemporalResolution(long temporalResolution)
Sets the temporal resolution of this publisher (default is milliseconds).
|
public TimelinePublisher(ConstraintNetwork an, Bounds bounds, boolean slidingWindow, java.lang.String... components)
an - The ConstraintNetwork used to calculate the SymbolicTimelines.bounds - The range in which to plot SymbolicTimelines.slidingWindow - If true, the bounds are interpreted as a sliding window.components - List of components for which to publish SymbolicTimelines.@Deprecated public TimelinePublisher(ActivityNetworkSolver ans, Bounds bounds, boolean slidingWindow, java.lang.String... components)
ans - The ActivityNetworkSolver used to calculate the SymbolicTimelines.bounds - The range in which to plot SymbolicTimelines.slidingWindow - If true, the bounds are interpreted as a sliding window.components - List of components for which to publish SymbolicTimelines.public TimelinePublisher(ConstraintNetwork an, Bounds bounds, java.lang.String... components)
an - The ConstraintNetwork used to calculate the SymbolicTimelines.bounds - The range in which to plot SymbolicTimelines.components - List of components for which to publish SymbolicTimelines.@Deprecated public TimelinePublisher(ActivityNetworkSolver ans, Bounds bounds, java.lang.String... components)
ans - The ActivityNetworkSolver used to calculate the SymbolicTimelines.bounds - The range in which to plot SymbolicTimelines.components - List of components for which to publish SymbolicTimelines.public TimelinePublisher(ConstraintNetwork an, java.lang.String... components)
an - The ConstraintNetwork used to calculate the SymbolicTimelines.components - List of components for which to publish SymbolicTimelines.@Deprecated public TimelinePublisher(ActivityNetworkSolver ans, java.lang.String... components)
ans - The ActivityNetworkSolver used to calculate the SymbolicTimelines.components - List of components for which to publish SymbolicTimelines.public void setShowLabels(boolean showlabels)
public void setMarkingsToExclude(java.lang.Object... markingsToExclude)
public void setTemporalResolution(long temporalResolution)
temporalResolution - The desired temporal resolution of this publisher (e.g., seconds if temporalResolution = 1000).public void registerTimelineVisualizer(TimelineVisualizer viz)
TimelineVisualizer display the SymbolicTimelines published
by this TimelinePublisher. Note that newly instantiated TimelineVisualizers are
automatically registered to the TimelinePublisher given in the constructor, so there is
usually no need to call this method.viz - The TimelineVisualizer that should display the SymbolicTimelines published
by this TimelinePublisher.public void setComponents(java.lang.String... components)
SymbolicTimelines.components - The list of components for which to publish SymbolicTimelines.public void publish(boolean block,
boolean skip)
SymbolicTimelines. This method renders in a background thread (unless blocking behavior
is requested through parameter block).block - Set to true if the call should block until SymbolicTimelines are rendered.skip - Set to true if this call should be skipped in case previous rendering is still in progress.