|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DynamicModel
Model that maintains the dynamic states of the application, which include the minimum and the maximum bounds, as well as the current visible interval.
The min and the max are used to know what are the limits of the time in the
current data. The visible interval is typically configured by a timeline
component to select a range of time. The model also maintains what is the
current time format, either DOUBLE
or DATE
. Internally,
all times are double, but it can be converted to dates for user display. In
addition the model stores the current estimators used to compute dynamic
values.
The model is listening to graph and attributes events to track all intervals and
deduce minimum and maximum. It thows MIN_CHANGED
or
MAX_CHANGED
events when these values are changed.
The model can also build DynamicGraph
objets on demand. These objects
can work independently to states of this model.
DynamicController
Nested Class Summary | |
---|---|
static class |
DynamicModel.TimeFormat
The way the time is represented, either a simple real value (DOUBLE) or a date. |
Field Summary | |
---|---|
static java.lang.String |
TIMEINTERVAL_COLUMN
The name of the column containing time intervals. |
Method Summary | |
---|---|
DynamicGraph |
createDynamicGraph(Graph graph)
Builds a new DynamicGraph from the given Graph instance. |
DynamicGraph |
createDynamicGraph(Graph graph,
TimeInterval interval)
Builds a new DynamicGraph from the given Graph instance
wrapping the given TimeInterval . |
Estimator |
getEstimator()
Returns the current ESTIMATOR , used to get values from
DynamicType . |
double |
getMax()
Returns the maximum of the time intervals defined in elements (i.e. nodes and edges) in the current workspace. |
double |
getMin()
Returns the minimum of the time intervals defined in elements (i.e. nodes and edges) in the current workspace. |
Estimator |
getNumberEstimator()
Returns the current number ESTIMATOR , used to get values
from number DynamicType , like DynamicInteger . |
DynamicModel.TimeFormat |
getTimeFormat()
Gets the current time format for this model. |
TimeInterval |
getVisibleInterval()
Returns the time interval wrapped by the DynamicGraph of
the current workspace. |
boolean |
isDynamicGraph()
Returns true if the graph in the current workspace is dynamic,
i.e. when the graph has either dynamic topology, attribute sor both. |
Field Detail |
---|
static final java.lang.String TIMEINTERVAL_COLUMN
Method Detail |
---|
DynamicGraph createDynamicGraph(Graph graph)
DynamicGraph
from the given Graph
instance.
graph
- the underlying graph
DynamicGraph
.DynamicGraph createDynamicGraph(Graph graph, TimeInterval interval)
DynamicGraph
from the given Graph
instance
wrapping the given TimeInterval
.
graph
- the underlying graph
DynamicGraph
.TimeInterval getVisibleInterval()
DynamicGraph
of
the current workspace.
DynamicGraph
of
the current workspace.double getMin()
Double.NEGATIVE_INFINITY
.
double getMax()
Double.POSITIVE_INFINITY
.
DynamicModel.TimeFormat getTimeFormat()
Estimator getEstimator()
ESTIMATOR
, used to get values from
DynamicType
. Default is Estimator.FIRST
.
See the getNumberEstimator()
method for number types.
Estimator getNumberEstimator()
ESTIMATOR
, used to get values
from number DynamicType
, like DynamicInteger
. Default is
Estimator.AVERAGE
.
See the getEstimator()
method for non-number types.
boolean isDynamicGraph()
true
if the graph in the current workspace is dynamic,
i.e. when the graph has either dynamic topology, attribute sor both.
true
if the graph is dynamic, false
otherwise
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |