Users can add new actors in the form of a Java class to the BCVTB. To add an actor, proceed as follows:
Create a Ptolemy II actor in the directory
bcvtb/lib/ptII/myActors
. This may be
easiest by copying and modifying an existing actor,
such as done in the example
bcvtb/lib/ptII/myActors/MyRamp.java
. For
instructions about creating actors, see
http://www.eecs.berkeley.edu/Pubs/TechRpts/2008/EECS-2008-28.pdf
.
Edit the file
bcvtb/lib/ptII/myActors/myActor.xml
to
include the new actor. This can be done by making a
copy of the existing line
<entity name="MyRamp" class="myActors.MyRamp"/>
Edit the value of the name
attribute
(which is the name of the Java file without extension)
and the class
attribute (which is the Java
package name).
To compile the actor, type on a command shell
cd bcvtb/lib/ptII/myActors ant all
After the compilation, the message BUILD
SUCCESSFUL
should be displayed.
When the BCVTB is restarted, the new actor should be displayed in the actor menu.