Writing a Dynamics System in DMC
- Dynamics Modelling and Culling -
[ Home | Modeller | Compiler | to-vrml | Dynamics | Models | JavaDoc | Examples ]

The DMC compiler takes a description of a dynamical system and transforms it into a new description that may be effectively culled. The input to the compiler is a Java class that implements the interface berkeley.cs.dmc.system.DynamicsSystem, and is considered the "accurate" model. Writing a dynamics system is as simple (or as hard) as implementing the DynamicsSystem class.

The output of the compilation process is Java code for a new class that implements the berkeley.cs.dmc.system.DynamicsVariable interface, and is called the "cullable" or "efficient" model. This interface is used in both the modeller and the final VRML output.

For closed form dynamics systems or systems that do not need to be culled in general it may be more appropriate to simply implement the DynamicsVariable interface instead, and go straight to using the other DMC tools.

Since it may be useful to try out a system in the modeller or in a VRML browser before compiling, especially when writing or debugging a new system, we also provide a SysToVar tool for producing an DynamicsVariable directly from a DynamicsSystem. This tool builds a simple DynamicsVariable wrapper for the input DynamicsSystem. Its usage is:

java berkeley.cs.dmc.system.SysToVar <DynamicsSystem><

SysToVar has input requirements similar to the compiler's.


[ Home | Modeller | Compiler | to-vrml | Dynamics | Models | JavaDoc | Examples ]
Last updated: 01-Oct-98