the directed graph to be animated
Create an edge at the given location.
Create an edge at the given location.
the external id for the edge
the shape (curve) of the edge
the label for the created edge
whether it is a primary (true) or secondary (false)
the color of the token
the eid of the origination node
the eid of the destination node
the coordinates and dimensions of the edge
Create a node at the given location.
Create a node at the given location.
the external id for the node
the shape of the node
the label for the created node
whether node is primary/transition (true) or secondary/place (false)
the color of the node
the coordinates and dimensions of the node
Create a token at the given location.
Create a token at the given location.
the external id for the token
the shape of the token
the label for the created token
whether it is a primary (true) or secondary (false)
the color of the token
the eid of the node it is on
the coordinates and dimensions of the token
Destroy the edge with the given id.
Destroy the edge with the given id.
the edges's external id
Destroy the node with the given id.
Destroy the node with the given id.
the node's external id
Destroy the token with the given id.
Destroy the token with the given id.
the token's external id
Show the flaw by printing the error message.
Show the flaw by printing the error message.
the method where the error occurred
the error message
Move/translate the shape to location (x, y).
Move/translate the shape to location (x, y).
the shape/object to move
the point (x, y)-coordinates
Move/translate the shape to location (x, y).
Move/translate the shape to location (x, y).
the shape/object to move
the x-coordinate
the y-coordinate
Move the node to a new (x, y) location.
Move the node to a new (x, y) location. Edges cannot be moved directly, but must adjust to node movements.
the external id of the node to move
the new x, y -coordinates
Move the token to a new (x, y) location.
Move the token to a new (x, y) location.
the external id of the token to move
the new x, y -coordinates
Move the token along the curve for an edge and return false if at end of curve.
Move the token along the curve for an edge and return false if at end of curve.
the external id for the token to move
the external id for edge to move along
the length of step
Move the token onto the new node.
Move the token onto the new node.
the external id of the token to move
the external id of the node to move onto
Move 'number' tokens of color 'color' from node 'from_eid' to node 'to_eid'.
Move 'number' tokens of color 'color' from node 'from_eid' to node 'to_eid'.
the color of the tokens to move
the external id of the node tokens are to be taken from
the external id of the node the tokens are to be moved to
one dimesional array containing number of tokens to move
Rotate the shape by theta radians.
Rotate the shape by theta radians.
the shape/object to rotate
the rotation angle in radians
Scale/resize the shape to the new width and height parameters.
Scale/resize the shape to the new width and height parameters.
the shape/object to scale (change size)
the point (w, h) parameters
Scale/resize the shape to the new width and height parameters.
Scale/resize the shape to the new width and height parameters.
the shape/object to scale (change size)
the width
the height
Scale the node, i.e., make it larger or smaller.
Scale the node, i.e., make it larger or smaller. Edges cannot be scaled directly, but must adjust to node scalings.
the external id of the node to scale
the new width, height dimensions
Scale the token, i.e., make it larger or smaller.
Scale the token, i.e., make it larger or smaller.
the external id of the token to scale
the new width, height dimensions
Move 'amount' tokens/fluids of color 'color' from node 'from_eid' to node 'to_eid' by increasing the size of tokens at 'to_eid' while decreasing the size at 'from_eid'.
Move 'amount' tokens/fluids of color 'color' from node 'from_eid' to node 'to_eid' by increasing the size of tokens at 'to_eid' while decreasing the size at 'from_eid'.
the color of the tokens/fluids to move
the external id of the node tokens/fluids are to be taken from
the external id of the node tokens/fluids are to be moved to
one dimesional array containing amount of fluids to move
Set the paint color for the edge.
Set the paint color for the edge.
the external id for node to paint
the new color for the node
Set the paint color for the node.
Set the paint color for the node.
the external id for node to paint
the new color for the node
Set the paint color for the token.
Set the paint color for the token.
the external id for node to paint
the new color for the node
Adjust the time dilation: >1 slows down animation, <1 speeds up animation.
Adjust the time dilation: >1 slows down animation, <1 speeds up animation.
one dimesional array containing the new time dilation factor
Get the time dilation factor.
The
Animator
class implements the commands to create, destroy, move and scale components (nodes, edges or tokens) in an animated graph.