Changeset 469 for java/Framclipse/com.framsticks.framclipse/res
- Timestamp:
- 02/09/16 02:08:53 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/Framclipse/com.framsticks.framclipse/res/framscript.xml
r443 r469 630 630 <arguments/></element> 631 631 <element name="pathseparator" type="string" flags="33"/> 632 <element name="system" function="true" type="integer" flags="32">633 <description><![CDATA[Invokes a system command and returns its exit code (0 usually means the command was completed successfully).634 635 Example:636 File.system("wget",["-O","/tmp/filename","http://example.com/file"]);]]></description>637 <arguments>638 <argument name="executable" type="string"/>639 <argument name="string arguments" type="Vector"/>640 </arguments>641 </element>642 632 </type> 643 633 <type name="FunctionReference" context="Global context"> … … 746 736 <arguments/></element> 747 737 <element name="roulette" function="true" type="Genotype" flags="34"> 748 <description><![CDATA[Returns a fitness-proportional genotype object]]></description>738 <description><![CDATA[Returns a randomly selected, fitness-proportional genotype object. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness.]]></description> 749 739 <arguments/></element> 750 740 <element name="revroulette" function="true" type="Genotype" flags="34"> 751 <description><![CDATA[Returns a r everse fitness-proportional genotype object]]></description>741 <description><![CDATA[Returns a randomly selected, reverse fitness-proportional genotype object. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness.]]></description> 752 742 <arguments/></element> 753 743 <element name="tournament" function="true" type="Genotype" flags="34"> 754 <description><![CDATA[Returns a tournament winner genotype object ]]></description>744 <description><![CDATA[Returns a tournament winner genotype object. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness.]]></description> 755 745 <arguments> 756 746 <argument name="genotypes in tournament" type="integer"/> … … 758 748 </element> 759 749 <element name="randomLikeGeno" function="true" type="Genotype" flags="34"> 760 <description><![CDATA[Returns a random genotype index similar to the target genotype. Read about details:750 <description><![CDATA[Returns a random genotype index similar to the target genotype. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness. Read about details: 761 751 http://www.framsticks.com/node/795 762 752 http://www.framsticks.com/node/890]]></description> … … 767 757 </element> 768 758 <element name="rouletteLikeGeno" function="true" type="Genotype" flags="34"> 769 <description><![CDATA[Returns a random genotype similar to the target genotype, fitness-proportional. Read about details:759 <description><![CDATA[Returns a random genotype similar to the target genotype, fitness-proportional. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness. Read about details: 770 760 http://www.framsticks.com/node/795 771 761 http://www.framsticks.com/node/890]]></description> … … 886 876 </element> 887 877 <element name="worst" function="true" type="integer" deprecated="true" flags="8226"> 888 <description><![CDATA[Gets worst genotype index.]]></description>878 <description><![CDATA[Gets the worst (lowest fitness) genotype index. Unrated genotypes (instances==0) are ranked lower than those having at least one instance.]]></description> 889 879 <arguments/></element> 890 880 <element name="random" function="true" type="integer" deprecated="true" flags="8226"> … … 892 882 <arguments/></element> 893 883 <element name="roulette" function="true" type="integer" deprecated="true" flags="8226"> 894 <description><![CDATA[Gets fitness-proportional genotype index.]]></description>884 <description><![CDATA[Gets a randomly selected, fitness-proportional genotype index. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness.]]></description> 895 885 <arguments/></element> 896 886 <element name="revroulette" function="true" type="integer" deprecated="true" flags="8226"> 897 <description><![CDATA[Get reverse fitness-proportional genotype index.]]></description>887 <description><![CDATA[Gets a randomly selected, reverse fitness-proportional genotype index. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness.]]></description> 898 888 <arguments/></element> 899 889 <element name="tournament" function="true" type="integer" deprecated="true" flags="8226"> 900 <description><![CDATA[Gets tournament winner genotype. ]]></description>890 <description><![CDATA[Gets tournament winner genotype. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness.]]></description> 901 891 <arguments> 902 892 <argument name="genotypes in tournament" type="integer"/> … … 904 894 </element> 905 895 <element name="randomLikeThis" function="true" type="integer" deprecated="true" flags="8226"> 906 <description><![CDATA[Gets a random genotype index similar to the selected one. ]]></description>896 <description><![CDATA[Gets a random genotype index similar to the selected one. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness.]]></description> 907 897 <arguments> 908 898 <argument name="minimum similarity" type="float"/> … … 910 900 </element> 911 901 <element name="likeThisRoulette" function="true" type="integer" deprecated="true" flags="8226"> 912 <description><![CDATA[Gets a random genotype similar to the selected one, fitness-proportional. ]]></description>902 <description><![CDATA[Gets a random genotype similar to the selected one, fitness-proportional. Unrated genotypes (with instances=0) are treated as if they had instances=1 and average fitness.]]></description> 913 903 <arguments> 914 904 <argument name="minimum similarity" type="float"/> … … 1886 1876 </element> 1887 1877 <element name="cos" function="true" type="float"> 1878 <arguments> 1879 <argument type="float"/> 1880 </arguments> 1881 </element> 1882 <element name="tan" function="true" type="float"> 1888 1883 <arguments> 1889 1884 <argument type="float"/> … … 2876 2871 - food and food: collision value = 0x20002 & 0x10002 = 2 -> As above. 2877 2872 - creature and food: collision value = (0x10001 & 0x10002) or (0x20002 & 0x20001) = 0x10000 or 0x20000 -> Custom handling will be used (the result falls into higher 16 bits). 2878 ]]></description> 2873 2874 2875 Instead of manually calculating mask values, you can use this interactive graphical helper: http://www.framsticks.com/files/apps/js/population-mask-helper/index.html]]></description> 2879 2876 </element> 2880 2877 <element name="othermask" type="integer" min="0" max="2147483647" default="0" flags="32"> … … 3262 3259 <element name="import" function="true" type="void" flags="32"> 3263 3260 <description><![CDATA[Load some data from file. The second optional argument selects what section(s) will be imported: 3264 1 - experiment (works like "load"and can reset the simulator state!)3261 1 - experiment (works just like load(), all other bits are ignored, and can reset the simulator state!) 3265 3262 2 - genotypes 3266 3263 4 - simulator parameters … … 3292 3289 - filename 3293 3290 - flags: composed of the following bit values: 3294 1 - experiment (works like "save"and all other bits are ignored)3291 1 - experiment (works just like save() and all other bits are ignored) 3295 3292 2 - genotypes 3296 3293 4 - simulator parameters … … 4419 4416 <element name="import" function="true" type="void" flags="32"> 4420 4417 <description><![CDATA[Load some data from file. The second optional argument selects what section(s) will be imported: 4421 1 - experiment (works like "load"and can reset the simulator state!)4418 1 - experiment (works just like load(), all other bits are ignored, and can reset the simulator state!) 4422 4419 2 - genotypes 4423 4420 4 - simulator parameters … … 4449 4446 - filename 4450 4447 - flags: composed of the following bit values: 4451 1 - experiment (works like "save"and all other bits are ignored)4448 1 - experiment (works just like save() and all other bits are ignored) 4452 4449 2 - genotypes 4453 4450 4 - simulator parameters … … 4910 4907 </element> 4911 4908 <element name="serialize" function="true" type="string"> 4912 <description><![CDATA[ convert to textual representation, preserving the object hierarchy]]></description>4909 <description><![CDATA[Converts to textual representation, preserving object hierarchy.]]></description> 4913 4910 <arguments> 4914 4911 <argument type="untyped"/> … … 4916 4913 </element> 4917 4914 <element name="deserialize" function="true" type="untyped"> 4918 <description><![CDATA[ extract objects from textual representation]]></description>4915 <description><![CDATA[Extracts objects from textual representation.]]></description> 4919 4916 <arguments> 4920 4917 <argument type="string"/> 4918 </arguments> 4919 </element> 4920 <element name="toJSON" function="true" type="string"> 4921 <description><![CDATA[Exports to JSON format, preserving object hierarchy (excluding recursion).]]></description> 4922 <arguments> 4923 <argument type="untyped"/> 4921 4924 </arguments> 4922 4925 </element> … … 6587 6590 </arguments> 6588 6591 </element> 6592 <element name="newScroll" function="true" type="GUIElement"> 6593 <arguments> 6594 <argument name="name" type="string"/> 6595 </arguments> 6596 </element> 6589 6597 <element name="get" function="true" type="GUIElement"> 6590 6598 <arguments> … … 6694 6702 <argument name="index" type="integer"/> 6695 6703 <argument name="image" type="string"/> 6704 </arguments> 6705 </element> 6706 <element name="getItemRect" function="true" type="Rect"> 6707 <description><![CDATA[Returns null if the requested item is scrolled out of view.]]></description> 6708 <arguments> 6709 <argument name="index" type="integer"/> 6696 6710 </arguments> 6697 6711 </element> … … 6752 6766 </arguments> 6753 6767 </element> 6754 <element name="scroll_x" type="float" flags="1"/> 6755 <element name="scroll_y" type="float" flags="1"/> 6768 <element name="scroll_x" type="float"/> 6769 <element name="scroll_y" type="float"/> 6770 <element name="scroll_w" type="float"/> 6771 <element name="scroll_h" type="float"/> 6772 <element name="page_w" type="float"/> 6773 <element name="page_h" type="float"/> 6756 6774 <element name="focus" type="integer" min="0" max="1"/> 6757 6775 <element name="edit" function="true" type="void"> … … 6800 6818 <description><![CDATA[Material object]]></description> 6801 6819 <element name="new" function="true" type="Material"><arguments/></element> 6820 <element name="clone" function="true" type="Material"><arguments/></element> 6802 6821 <element name="color" type="string" flags="256"/> 6803 6822 <element name="lighting" type="integer" min="0" max="1" flags="256"/> … … 6882 6901 </arguments> 6883 6902 </element> 6903 <element name="clone" function="true" type="Obj3D"><arguments/></element> 6884 6904 <element name="load" function="true" type="Obj3D"> 6885 6905 <arguments>
Note: See TracChangeset
for help on using the changeset viewer.