The AnimateCommand
class provides a template for animation commands.
The AnimateCommand
class provides a template for animation commands.
the animation action to perform
the external id for the component acted upon
the shape of graph component (node, edge or token)
the display label for the component
whether the component is primary (true) or secondary (false)
the color of the component
the set points/dimensions giving the shapes location and size
simulation time when the command is to be performed
the eid of the orgination node (only for edges)
the eid of the destination node (only for edges)
The Animator
class implements the commands to create, destroy, move and scale
components (nodes, edges or tokens) in an animated graph.
The DgAnimator
class is an animation engine for animating graphs.
The DgAnimator
class is an animation engine for animating graphs.
For example, it can animate bipartite graphs to animate Petri Nets.
The Dgraph
class is for defining graph structures suitable for animation.
The Dgraph
class is for defining graph structures suitable for animation.
Graphs consist of nodes, edges and tokens. Tokens can be positioned within
nodes or on edges. A graph animation class that uses this class would typically
move the tokens by changing there location over time. This class supports both
directed graphs and bipartite graphs. Directed graphs contain only primary
nodes, while bipartite graphs have both primary and secondary nodes along with
the rule that edges must go from primaries to secondaries or secondaries to
primaries. Bipartite graphs can be used to represent Petri Nets by letting
Transitions be primary nodes and Places be secondary nodes. Everything can be
labeled (nodes, edges and tokens as well as the graph itself). Nodes and edges
may be added to/removed from graphs, while tokens may be added to/removed from
either nodes or edges. Tokens may also be free (not bound to nodes or edges).
The CommandType
object implements a message which is passed from a simulation
engine to the animation engine.
The CommandType
object implements a message which is passed from a simulation
engine to the animation engine. A message specifies one of the commands defined
in the Animator interface.
The Counter
object maintains counters.
The DgAnimatorTest
object is used to test the DgAnimator
class.
The DgraphTest
object to test the Dgraph
class.
The EidCounter
object is used to provide unique identifiers for internally
created tokens/fluids.
The animation package contains classes, traits and objects for 2D animation of simulation objects.