Changeset 469 for java


Ignore:
Timestamp:
02/09/16 02:08:53 (9 years ago)
Author:
sz
Message:

Object definitions updated (Framsticks v 5.0rc2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/Framclipse/com.framsticks.framclipse/res/framscript.xml

    r443 r469  
    630630<arguments/></element>
    631631                <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>
    642632        </type>
    643633        <type name="FunctionReference" context="Global context">
     
    746736<arguments/></element>
    747737                <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>
    749739<arguments/></element>
    750740                <element name="revroulette" function="true" type="Genotype" flags="34">
    751                         <description><![CDATA[Returns a reverse 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>
    752742<arguments/></element>
    753743                <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>
    755745                        <arguments>
    756746                                <argument name="genotypes in tournament" type="integer"/>
     
    758748                </element>
    759749                <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:
    761751http://www.framsticks.com/node/795
    762752http://www.framsticks.com/node/890]]></description>
     
    767757                </element>
    768758                <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:
    770760http://www.framsticks.com/node/795
    771761http://www.framsticks.com/node/890]]></description>
     
    886876                </element>
    887877                <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>
    889879<arguments/></element>
    890880                <element name="random" function="true" type="integer" deprecated="true" flags="8226">
     
    892882<arguments/></element>
    893883                <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>
    895885<arguments/></element>
    896886                <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>
    898888<arguments/></element>
    899889                <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>
    901891                        <arguments>
    902892                                <argument name="genotypes in tournament" type="integer"/>
     
    904894                </element>
    905895                <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>
    907897                        <arguments>
    908898                                <argument name="minimum similarity" type="float"/>
     
    910900                </element>
    911901                <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>
    913903                        <arguments>
    914904                                <argument name="minimum similarity" type="float"/>
     
    18861876                </element>
    18871877                <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">
    18881883                        <arguments>
    18891884                                <argument type="float"/>
     
    28762871        - food and food: collision value = 0x20002 & 0x10002 = 2 -> As above.
    28772872        - 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
     2875Instead 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>
    28792876                </element>
    28802877                <element name="othermask" type="integer" min="0" max="2147483647" default="0" flags="32">
     
    32623259                <element name="import" function="true" type="void" flags="32">
    32633260                        <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!)
    32653262        2 - genotypes
    32663263        4 - simulator parameters
     
    32923289- filename
    32933290- 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)
    32953292   2 - genotypes
    32963293   4 - simulator parameters
     
    44194416                <element name="import" function="true" type="void" flags="32">
    44204417                        <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!)
    44224419        2 - genotypes
    44234420        4 - simulator parameters
     
    44494446- filename
    44504447- 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)
    44524449   2 - genotypes
    44534450   4 - simulator parameters
     
    49104907                </element>
    49114908                <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>
    49134910                        <arguments>
    49144911                                <argument type="untyped"/>
     
    49164913                </element>
    49174914                <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>
    49194916                        <arguments>
    49204917                                <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"/>
    49214924                        </arguments>
    49224925                </element>
     
    65876590                        </arguments>
    65886591                </element>
     6592                <element name="newScroll" function="true" type="GUIElement">
     6593                        <arguments>
     6594                                <argument name="name" type="string"/>
     6595                        </arguments>
     6596                </element>
    65896597                <element name="get" function="true" type="GUIElement">
    65906598                        <arguments>
     
    66946702                                <argument name="index" type="integer"/>
    66956703                                <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"/>
    66966710                        </arguments>
    66976711                </element>
     
    67526766                        </arguments>
    67536767                </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"/>
    67566774                <element name="focus" type="integer" min="0" max="1"/>
    67576775                <element name="edit" function="true" type="void">
     
    68006818<description><![CDATA[Material object]]></description>
    68016819                <element name="new" function="true" type="Material"><arguments/></element>
     6820                <element name="clone" function="true" type="Material"><arguments/></element>
    68026821                <element name="color" type="string" flags="256"/>
    68036822                <element name="lighting" type="integer" min="0" max="1" flags="256"/>
     
    68826901                        </arguments>
    68836902                </element>
     6903                <element name="clone" function="true" type="Obj3D"><arguments/></element>
    68846904                <element name="load" function="true" type="Obj3D">
    68856905                        <arguments>
Note: See TracChangeset for help on using the changeset viewer.