- Timestamp:
- 10/19/15 14:15:14 (9 years ago)
- Location:
- java/FramclipsePlugin/src/main/resources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
java/FramclipsePlugin/src/main/resources/framscontext.xml
r193 r439 43 43 <objects context="properties file"/> 44 44 <code object="show" member="code"> 45 <context name="Framsticks Theater"/> 45 46 <context name="Command line interface"/> 46 47 <context name="Experiment definition"/> … … 59 60 60 61 <file pattern="*.ini" label="Framsticks startup scripts"> 62 <script context="Framsticks Theater"/> 61 63 <script context="Command line interface"/> 62 64 <script context="Global context"/> -
java/FramclipsePlugin/src/main/resources/framscript.xml
r436 r439 640 640 </arguments> 641 641 </element> 642 </type> 643 <type name="FunctionReference" context="Global context"> 644 <description><![CDATA[Function reference objects are created using the 'function' operator, the referenced function can be called using the 'call' operator: 645 646 function abc(a,b) 647 { return a+b; } 648 649 var f=function abc; 650 Simulator.print(typeof(f)); //"FunctionReference" 651 Simulator.print(call(f)(123,321)); //444]]></description> 642 652 </type> 643 653 <type name="GenePool" context="Global context"> … … 4987 4997 <element name="new" function="true" type="Vector"><arguments/></element> 4988 4998 <element name="sort" function="true" type="void" flags="256"> 4989 <description><![CDATA[comparator can be null, giving the "natural" sorting order (depending on element type), otherwise it must be a function reference obtained by the "function FUNCTIONNAME"operator.4999 <description><![CDATA[comparator can be null, giving the "natural" sorting order (depending on element type), otherwise it must be a function reference obtained from the 'function' operator. 4990 5000 4991 5001 Example: … … 4994 5004 v.sort(function compareLastDigit);]]></description> 4995 5005 <arguments> 4996 <argument name="comparator" type=" Object"/>5006 <argument name="comparator" type="FunctionReference"/> 4997 5007 </arguments> 4998 5008 </element> … … 6311 6321 <element name="msgtype" type="integer" min="0" max="1"/> 6312 6322 </type> 6313 <type name="CreatureCharts" context="Command line interface"> 6323 <type name="RowFormat" context="Command line interface"> 6324 <description><![CDATA[Used for creating simple listings of objects (in command line applications). There is only one shared RowFormat object. In order to use RowFormat you should first configure it, by adding column definitions (prepare or addColumn), i.e. defining column names and widths. Then, the "format" method can be invoked on a number of objects (of the same class) returning the formatted rows of the table. 6325 6326 Example: 6327 RowFormat.clear(); 6328 RowFormat.prepare(Genotype.*,"name/20,strsiz/5,nnsiz/5,fit/6"); 6329 CLI.println(RowFormat.format(Genotype.*));]]></description> 6330 <element name="prepare" function="true" type="void"> 6331 <description><![CDATA[Adds a number of columns, described as FIELD_NAME/WIDTH, columns are separated by "," (comma). Existing column definitions are not removed. Usually you will need to call "clear()" before "prepare".]]></description> 6332 <arguments> 6333 <argument name="Object" type="Object"/> 6334 <argument name="Column Descriptions" type="string"/> 6335 </arguments> 6336 </element> 6337 <element name="format" function="true" type="string"> 6338 <description><![CDATA[Returns the formatted string taking data from the supplied object.]]></description> 6339 <arguments> 6340 <argument name="Object" type="Object"/> 6341 </arguments> 6342 </element> 6343 <element name="clear" function="true" type="void"> 6344 <description><![CDATA[Remove all existing column definitions.]]></description> 6345 <arguments/></element> 6346 <element name="addColumn" function="true" type="void"> 6347 <description><![CDATA[Low level call, adds a single column. "prepare" is better.]]></description> 6348 <arguments> 6349 <argument name="Field#" type="integer"/> 6350 <argument name="Column width" type="integer"/> 6351 </arguments> 6352 </element> 6353 <element name="fillchar" type="string"> 6354 <description><![CDATA[The characted used for padding the columns contents]]></description> 6355 </element> 6356 <element name="fieldsep" type="string"> 6357 <description><![CDATA[The character used for separating columns]]></description> 6358 </element> 6359 <element name="header" type="string" flags="1"> 6360 <description><![CDATA[Contains the field names with the same formatting applied (i.e. with fill and separators)]]></description> 6361 </element> 6362 </type> 6363 <type name="CreatureCharts" context="Framsticks Theater"> 6314 6364 <description><![CDATA[Manages charts for monitoring creatures performance. 6315 6365 This class has no corresponding static object. If you want to use it, you have to create an object or get a reference to the existing object.]]></description> … … 6332 6382 <element name="creature" type="untyped" flags="290"/> 6333 6383 </type> 6334 <type name="CreatureSelection" context=" Command line interface">6384 <type name="CreatureSelection" context="Framsticks Theater"> 6335 6385 <element name="count" type="integer" flags="1"/> 6336 6386 <element name="get" function="true" type="Creature"> … … 6351 6401 <element name="clear" function="true" type="void"><arguments/></element> 6352 6402 </type> 6353 <type name="DynaChart" context=" Command line interface">6403 <type name="DynaChart" context="Framsticks Theater"> 6354 6404 <description><![CDATA[Line chart (visual object). Can be used as the client object in the Window.]]></description> 6355 6405 <element name="new" function="true" type="DynaChart" flags="32"><arguments/></element> … … 6360 6410 <element name="xscale" type="integer" min="1" max="20" flags="288"/> 6361 6411 </type> 6362 <type name="DynaChart2D" context=" Command line interface">6412 <type name="DynaChart2D" context="Framsticks Theater"> 6363 6413 <description><![CDATA[2D Line chart (visual object). Can be used as the client object in the Window.]]></description> 6364 6414 <element name="new" function="true" type="DynaChart2D" flags="32"><arguments/></element> … … 6375 6425 </element> 6376 6426 </type> 6377 <type name="GLDisplay" context=" Command line interface">6427 <type name="GLDisplay" context="Framsticks Theater"> 6378 6428 <description><![CDATA[OpenGL display for the Framsticks Theater application.]]></description> 6379 6429 <element name="simsteps" type="integer" min="0" max="999999" default="0"> … … 6465 6515 </element> 6466 6516 </type> 6467 <type name="GUI" context=" Command line interface">6517 <type name="GUI" context="Framsticks Theater"> 6468 6518 <description><![CDATA[Manage GUI elements]]></description> 6469 6519 <element name="newLabel" function="true" type="GUIElement"> … … 6559 6609 <argument name="identifier" type="string"/> 6560 6610 <argument name="timeout" type="float"/> 6561 <argument name="function" type=" JumpTarget"/>6611 <argument name="function" type="FunctionReference"/> 6562 6612 </arguments> 6563 6613 </element> … … 6573 6623 <argument name="message" type="string"/> 6574 6624 <argument name="buttons" type="Vector"/> 6575 <argument name="function" type=" JumpTarget"/>6625 <argument name="function" type="FunctionReference"/> 6576 6626 </arguments> 6577 6627 </element> … … 6592 6642 <element name="bottom_right" type="Element" flags="1"/> 6593 6643 </type> 6594 <type name="GUIElement" context=" Command line interface">6644 <type name="GUIElement" context="Framsticks Theater"> 6595 6645 <description><![CDATA[GUI element]]></description> 6596 6646 <element name="name" type="string"/> … … 6721 6771 </element> 6722 6772 </type> 6723 <type name="ImageExport" context=" Command line interface">6773 <type name="ImageExport" context="Framsticks Theater"> 6724 6774 <element name="imgex_outdir" type="string" default="."> 6725 6775 <description><![CDATA[Directory name WITHOUT trailing '/' sign]]></description> … … 6747 6797 <element name="imgex_lastfile" type="string" flags="18"/> 6748 6798 </type> 6749 <type name="Material" context=" Command line interface">6799 <type name="Material" context="Framsticks Theater"> 6750 6800 <description><![CDATA[Material object]]></description> 6751 6801 <element name="new" function="true" type="Material"><arguments/></element> … … 6756 6806 <element name="shader" type="Shader" flags="256"/> 6757 6807 </type> 6758 <type name="Matrix" context=" Command line interface">6808 <type name="Matrix" context="Framsticks Theater"> 6759 6809 <description><![CDATA[4x4 Marix object]]></description> 6760 6810 <element name="new" function="true" type="Matrix"><arguments/></element> … … 6801 6851 </element> 6802 6852 </type> 6803 <type name="NeuroDiagram" context=" Command line interface">6853 <type name="NeuroDiagram" context="Framsticks Theater"> 6804 6854 <description><![CDATA[Can be used as the client object in the Window.]]></description> 6805 6855 <element name="new" function="true" flags="32"/> … … 6816 6866 <element name="hide" function="true" type="void" flags="288"><arguments/></element> 6817 6867 </type> 6818 <type name="Obj3D" context=" Command line interface">6868 <type name="Obj3D" context="Framsticks Theater"> 6819 6869 <description><![CDATA[3D object]]></description> 6820 6870 <element name="newEmpty" function="true" type="Obj3D"><arguments/></element> … … 6869 6919 </element> 6870 6920 </type> 6871 <type name="Rectangle" context=" Command line interface">6921 <type name="Rectangle" context="Framsticks Theater"> 6872 6922 <description><![CDATA[GUI Rectangle]]></description> 6873 6923 <element name="x" type="float" flags="256"/> … … 6884 6934 </element> 6885 6935 </type> 6886 <type name="RowFormat" context="Command line interface"> 6887 <description><![CDATA[Used for creating simple listings of objects (in command line applications). There is only one shared RowFormat object. In order to use RowFormat you should first configure it, by adding column definitions (prepare or addColumn), i.e. defining column names and widths. Then, the "format" method can be invoked on a number of objects (of the same class) returning the formatted rows of the table. 6888 6889 Example: 6890 RowFormat.clear(); 6891 RowFormat.prepare(Genotype.*,"name/20,strsiz/5,nnsiz/5,fit/6"); 6892 CLI.println(RowFormat.format(Genotype.*));]]></description> 6893 <element name="prepare" function="true" type="void"> 6894 <description><![CDATA[Adds a number of columns, described as FIELD_NAME/WIDTH, columns are separated by "," (comma). Existing column definitions are not removed. Usually you will need to call "clear()" before "prepare".]]></description> 6895 <arguments> 6896 <argument name="Object" type="Object"/> 6897 <argument name="Column Descriptions" type="string"/> 6898 </arguments> 6899 </element> 6900 <element name="format" function="true" type="string"> 6901 <description><![CDATA[Returns the formatted string taking data from the supplied object.]]></description> 6902 <arguments> 6903 <argument name="Object" type="Object"/> 6904 </arguments> 6905 </element> 6906 <element name="clear" function="true" type="void"> 6907 <description><![CDATA[Remove all existing column definitions.]]></description> 6908 <arguments/></element> 6909 <element name="addColumn" function="true" type="void"> 6910 <description><![CDATA[Low level call, adds a single column. "prepare" is better.]]></description> 6911 <arguments> 6912 <argument name="Field#" type="integer"/> 6913 <argument name="Column width" type="integer"/> 6914 </arguments> 6915 </element> 6916 <element name="fillchar" type="string"> 6917 <description><![CDATA[The characted used for padding the columns contents]]></description> 6918 </element> 6919 <element name="fieldsep" type="string"> 6920 <description><![CDATA[The character used for separating columns]]></description> 6921 </element> 6922 <element name="header" type="string" flags="1"> 6923 <description><![CDATA[Contains the field names with the same formatting applied (i.e. with fill and separators)]]></description> 6924 </element> 6925 </type> 6926 <type name="Shader" context="Command line interface"> 6936 <type name="Shader" context="Framsticks Theater"> 6927 6937 <description><![CDATA[Shader object]]></description> 6928 6938 <element name="new" function="true" type="Shader"> … … 6934 6944 <element name="fragment" type="string" flags="256"/> 6935 6945 </type> 6936 <type name="Sharing" context=" Command line interface">6946 <type name="Sharing" context="Framsticks Theater"> 6937 6947 <element name="service" type="integer" min="0" max="4"/> 6938 6948 <element name="message" type="string"/> … … 6949 6959 <element name="execute" function="true" type="void"><arguments/></element> 6950 6960 </type> 6951 <type name="ShowManager" context=" Command line interface">6961 <type name="ShowManager" context="Framsticks Theater"> 6952 6962 <element name="show" type="string"/> 6953 6963 <element name="name" type="string" flags="50"/> … … 6990 7000 <element name="changedPropertyId" type="string" flags="35"/> 6991 7001 </type> 6992 <type name="ShowParams" context=" Command line interface">7002 <type name="ShowParams" context="Framsticks Theater"> 6993 7003 <element name="clear" function="true" flags="34"/> 6994 7004 <element name="add" function="true" flags="34"/> … … 6999 7009 <element name="changedPropertyId" type="string" flags="35"/> 7000 7010 </type> 7001 <type name="SimStatsCharts" context=" Command line interface">7011 <type name="SimStatsCharts" context="Framsticks Theater"> 7002 7012 <description><![CDATA[Manages charts for monitoring simulator statistics. 7003 7013 This class has no corresponding static object. If you want to use it, you have to create an object or get a reference to the existing object.]]></description> … … 7011 7021 <element name="createChart" function="true" flags="288"/> 7012 7022 </type> 7013 <type name="TrackingCam" context=" Command line interface">7023 <type name="TrackingCam" context="Framsticks Theater"> 7014 7024 <description><![CDATA[Camera object with the automatic target tracking ability.]]></description> 7015 7025 <element name="cam_tracking" type="integer" min="0" max="3" default="1"/> … … 7071 7081 </element> 7072 7082 </type> 7073 <type name="VisualStyle" context=" Command line interface">7083 <type name="VisualStyle" context="Framsticks Theater"> 7074 7084 <element name="style" type="string" default="standard"/> 7075 7085 <element name="name" type="string" flags="19"/> … … 7124 7134 </element> 7125 7135 </type> 7126 <type name="Window" context=" Command line interface">7136 <type name="Window" context="Framsticks Theater"> 7127 7137 <description><![CDATA[Window object, used in the Framsticks Theater application. 7128 7138 This class has no corresponding static object. If you want to use it, you have to create an object or get a reference to the existing object.
Note: See TracChangeset
for help on using the changeset viewer.