From Optflux
Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 8: Line 8:
 
Bellow we present the example provided with this tutorial, each section is explained in detail afterwards:
 
Bellow we present the example provided with this tutorial, each section is explained in detail afterwards:
  
[[Image:plugin1.png]]
+
<plugin start="false">
 +
<uid>optflux_plugins_myplugin</uid>
 +
<name>My first plugin for optflux</name>
 +
<version>1.0</version>
 +
 +
<!-- WE DON'T NEED THE LIFECYCLE CLASS
 +
 +
<lifecycleclass> </lifecycleclass>
 +
 +
-->
 +
 +
  <dependencies>
 +
  <dependency uid="optflux.core"/>
 +
<dependency uid="optflux.simulation"/>
 +
</dependencies>
 +
 +
<extensions>
 +
 +
<extension uid="aibench.core"
 +
name="aibench.core.operation-definition"   
 +
class="myplugin4optflux.operations.MyOperation">
 +
    <operation-description name="My Operation"
 +
uid= "myplugin_myoperation"
 +
path="20@Plugins/1@MyOperations"
 +
/>
 +
</extension>
 +
 +
<extension uid="aibench.core"
 +
name="aibench.core.operation-definition"   
 +
class="myplugin4optflux.operations.MyMapOperation">
 +
    <operation-description name="My Map Operation"
 +
uid= "myplugin_mymapoperation"
 +
path="20@Plugins/2@MyOperations"
 +
/>
 +
</extension>
 +
 +
<extension uid="aibench.workbench"
 +
name="aibench.workbench.view" >
 +
<view name="SimpleDatatype View"
 +
datatype="myplugin4optflux.datatypes.MySimpleDatatype"
 +
class="myplugin4optflux.views.MyViewForSimpleDatatype"
 +
/>
 +
</extension>
 +
 +
<extension uid="aibench.workbench"
 +
name="aibench.workbench.view" >
 +
<icon-operation operation="myplugin_mymapoperation"
 +
icon="icons/exec.png"
 +
/>
 +
</extension>
 +
 +
<extension uid="aibench.workbench"
 +
name="aibench.workbench.view" >
 +
    <icon-datatype datatype="myplugin4optflux.datatypes.MySimpleDatatype"
 +
icon="icons/blocks.png"
 +
/>
 +
</extension>
 +
 +
</extensions>
 +
 +
</plugin>
  
 
* The plugin.xml file begins with the declaration of the '''<plugin start="[value]"''' tag. Here, '''[value]''' equals a boolean value (either '''true''' or '''false'''). '''We will use false as default'''. This value is only true for some core plug-ins since they will be loaded first by the plug-in engine.
 
* The plugin.xml file begins with the declaration of the '''<plugin start="[value]"''' tag. Here, '''[value]''' equals a boolean value (either '''true''' or '''false'''). '''We will use false as default'''. This value is only true for some core plug-ins since they will be loaded first by the plug-in engine.

Please note that all contributions to Optflux may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Optflux:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)