net.java.dev.joode
Interface SimState

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
Body, Box, Capsule, Circle, Contact, ContactParameters, Cylinder, Force, Geom, GeomTransform, Joint, JointBall, JointConfigurable, JointContact, JointFeedback, JointFixed, JointHinge, JointHinge2, JointLimitMotor, JointSlider, Mass, NewtonGravity, OctTree, OctTreeNode, OctTreeSpace, Plane, Ray, Rectangle, SimpleSpace, Space, Sphere, SurfaceParameters, TriMesh, UniversalGravity, World, WorldObject

public interface SimState
extends java.io.Serializable

Tags classes that are regarded as part of the simulation state. As such any references from a SimState object to another SimState object is maintained after a clone

Author:
Tom Larkworthy

Method Summary
 SimState cloneState(ClonedReferences util)
           deep clones the state object, any references to other SimState objects should be cloned and assigned to the clone via the ClonedReferences util object.
 

Method Detail

cloneState

SimState cloneState(ClonedReferences util)

deep clones the state object, any references to other SimState objects should be cloned and assigned to the clone via the ClonedReferences util object. The util object ensures that multiple clones of the same object are not performed during a clone operation.

Parameters:
util - instanciate a new one if top level cloning