Recent Changes - Search:

edit SideBar

AddingActorsToVergil

Back to mbed

A more complete guide to adding actors to vergil can be found here, this is temporary, since the method is planned to improve.

This guide will walk through the basics of adding an actor to vergil so future developers can see what we did.

Scattered throughout ptolemy/actor/lib and the sub directories, are .xml files. Some of these files end up being folders in vergil that contain actors that the user can drag and drop into the editor. They will look like the following:

 <?xml version="1.0" standalone="no"?>
 <!DOCTYPE plot PUBLIC "-//UC Berkeley//DTD MoML 1//EN"
     "http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd">
 <entity name="FolderName" class="ptolemy.moml.EntityLibrary">
   <configure>
     <?moml
       <group>
 <doc>Doc description here</doc>
 <entity name="ActorNames" class="ptolemy.actor.lib.actor">
 <doc>Create a sequence of tokens with increasing value of 2</doc>
 </entity>

       </group>
     ?>
   </configure>
 </entity>

We created one of these with the name "Mbed" and placed all of our actors that had mbed CG adaptors to them in here.

In order to add this folder to a specific place in vergil, these are accessed in ptolemy/config files to set up the browser. We added the following line to ptolemy/config/defaultFullConfiguration.xml:

 <input source="ptolemy/actor/lib/mbed/mbed.xml"/>

Add this to the location within the folder you want this to show up.

There are other locations that this can be added, such as in a sub folder. An example is ptolemy/config/basicActorLibrary.xml which will add to the "Actor" folder. This should probably not be changed though.

Edit - History - Print - Recent Changes - Search
Page last modified on April 25, 2015, at 11:02 pm