All Packages Class Hierarchy This Package Previous Next Index
Class berkeley.cs.dmc.distributor.Main
java.lang.Object
|
+----berkeley.cs.dmc.distributor.Main
- public class Main
- extends Object
Generates code that will distribute timer events to visible nodes.
Takes as input a list of node names to manage, as arguments.
Produces a chunk of VRML for a script node and routes, and a chunk of
java to do the distribution and event management.
-
Main()
-
-
main(String[])
- Generate VRML and Java to manage events for dynamics culling.
Main
public Main()
main
public static void main(String args[])
- Generate VRML and Java to manage events for dynamics culling.
Input is a list of DEFed node names to be managed. Each of
these is assumed to be of the type output by the tovrml.Main()
application or the dmod.Main() modeller. In other words, the
nodes given have been defined as:
PROTO name [ eventIn SFFloat currentTime eventOut SFBool visible ] { }
Two files are generated, Distributor.wrl and Distributor.java.
The former should be included in the VRML file, either directly
or by inlining. The Script node defined should have events from
a TimeSensor node routed to it. In other words, it defines:
eventIn SFTime cycleTime
eventIn SFFloat fraction_changed
Routes are also defined between the script node and each of the
nodes is manages.
The Java file should be compiled and placed where a browser can
locate it.
- Parameters:
- args - An array of the names of nodes to manage.
All Packages Class Hierarchy This Package Previous Next Index