Changeset 769 for java/Framclipse


Ignore:
Timestamp:
03/30/18 01:56:04 (6 years ago)
Author:
sz
Message:

updated for Framsticks version 5.0rc13 (Model checkpoints, f4 improvements, doc corrections)

File:
1 edited

Legend:

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

    r717 r769  
    649649        </type>
    650650        <type name="EnergyParticles" context="Global context">
    651                 <element name="lifespan_min" type="integer" min="1" max="100" default="20">
     651                <element name="enpa_lifespan_min" type="integer" min="1" max="100" default="20">
    652652                        <description><![CDATA[Particle's lifespan is a random number taken from the specified range [min,max]]]></description>
    653653                </element>
    654                 <element name="lifespan_max" type="integer" min="1" max="100" default="30">
     654                <element name="enpa_lifespan_max" type="integer" min="1" max="100" default="30">
    655655                        <description><![CDATA[Particle's lifespan is a random number taken from the specified range [min,max]]]></description>
    656656                </element>
    657                 <element name="amount_min" type="float" min="0" max="1000" default="0.5">
     657                <element name="enpa_amount_min" type="float" min="0" max="1000" default="1.0">
    658658                        <description><![CDATA[A particle is emitted if the amount of energy transferred in a single step exceeds this threshold]]></description>
    659659                </element>
    660                 <element name="amount_max" type="float" min="0.01" max="1000" default="5.0">
     660                <element name="enpa_amount_max" type="float" min="0.01" max="1000" default="5.0">
    661661                        <description><![CDATA[A maximum amount of energy a single particle can represent. If energy transferred in a single simulation step exceeds this amount, more particles are created.]]></description>
    662662                </element>
    663                 <element name="step_maxparticles" type="integer" min="1" max="100" default="5">
     663                <element name="enpa_step_maxparticles" type="integer" min="1" max="100" default="5">
    664664                        <description><![CDATA[Limit the number of particles created in a single step for each energy transfer]]></description>
    665665                </element>
    666                 <element name="random_pos" type="float" min="0" max="1" default="0.3">
     666                <element name="enpa_random_pos" type="float" min="0" max="1" default="0.3">
    667667                        <description><![CDATA[The amount of random shift used for individual particles (uniform distribution)]]></description>
    668668                </element>
    669                 <element name="turn" type="float" min="0" max="1" default="0.15">
     669                <element name="enpa_turn" type="float" min="0" max="1" default="0.15">
    670670                        <description><![CDATA[Ignore (0) or directly follow (1) the potentially moving target of a particle. Intermediate values create momentum effect as if the target was gradually adjusted.]]></description>
    671671                </element>
    672                 <element name="speedup" type="float" min="0" max="1" default="0.05">
     672                <element name="enpa_speedup" type="float" min="0" max="1" default="0.05">
    673673                        <description><![CDATA[Increase particle speed by this factor in each simulation step. This can help reach moving targets (along with "Turn towards target").]]></description>
    674674                </element>
    675                 <element name="fade" type="float" min="0" max="1" default="0.9">
     675                <element name="enpa_fade" type="float" min="0" max="1" default="0.9">
    676676                        <description><![CDATA[Gradually decrease particle size before it disappears when its energy transfer has ended while the particle was on its way. The remaining energy amount is multiplied by this factor in each step. 0 means: disappear immediately, 1 means: don't decrease the size at all. Note that these parameters only concern visualization and the actual energy was already transferred.]]></description>
    677677                </element>
    678                 <element name="total_limit" type="integer" min="10" max="10000" default="1000">
     678                <element name="enpa_total_limit" type="integer" min="10" max="10000" default="1000">
    679679                        <description><![CDATA[Limit the total number of existing energy particles (to save performance)]]></description>
     680                </element>
     681                <element name="enpa_display_min" type="float" min="0" max="1" default="0.2">
     682                        <description><![CDATA[Visible particle size at minimum energy]]></description>
     683                </element>
     684                <element name="enpa_display_max" type="float" min="0" max="1" default="0.3">
     685                        <description><![CDATA[Visible particle size at maximum energy]]></description>
    680686                </element>
    681687        </type>
     
    793799                        <description><![CDATA[Returns file contents if it has been buffered.]]></description>
    794800<arguments/></element>
    795                 <element name="exists" function="true" type="integer" min="0" max="1" flags="32">
     801                <element name="exists" function="true" type="integer" flags="32">
    796802                        <description><![CDATA[Sample:
    797803File.exists("walking.gen") -> returns 0 or 1.]]></description>
     
    864870Returns the Genotype object or null if not found.]]></description>
    865871                        <arguments>
    866                                 <argument name="genotype object or geno object or string genotype" type="untyped"/>
     872                                <argument name="Genotype object or Geno object or string genotype" type="untyped"/>
    867873                        </arguments>
    868874                </element>
     
    884890Deprecated. Use the more versatile GenePool.add() instead of this function.]]></description>
    885891                        <arguments>
    886                                 <argument name="genotype" type="Geno"/>
     892                                <argument type="Geno"/>
    887893                        </arguments>
    888894                </element>
     
    898904Returns the created Genotype.]]></description>
    899905                        <arguments>
    900                                 <argument name="geno object or string genotype" type="untyped"/>
     906                                <argument name="Geno object or string genotype" type="untyped"/>
    901907                        </arguments>
    902908                </element>
     
    929935                        <arguments>
    930936                                <argument name="minimum similarity" type="float"/>
    931                                 <argument name="target geno" type="Geno"/>
     937                                <argument name="target" type="Geno"/>
    932938                        </arguments>
    933939                </element>
     
    939945                        <arguments>
    940946                                <argument name="minimum similarity" type="float"/>
    941                                 <argument name="target geno" type="Geno"/>
     947                                <argument name="target" type="Geno"/>
    942948                        </arguments>
    943949                </element>
     
    11981204                        <description><![CDATA[]]></description>
    11991205                </element>
     1206                <element name="genoper_fn" type="integer" min="0" max="0" flags="65">
     1207                        <description><![CDATA[]]></description>
     1208                </element>
    12001209                <element name="neuadd_N" type="integer" min="0" max="1">
    12011210                        <description><![CDATA[Standard neuron
     
    16251634                <element name="f4_mut_exmod" type="string" max="30">
    16261635                        <description><![CDATA[Modifiers that will not be added nor deleted during mutation
    1627 (all: LlRrCcQqFfMmIiEeWwAaSs)]]></description>
     1636(all: ,LlRrCcQqFfMmIiEeWwAaSs)]]></description>
    16281637                </element>
    16291638                <element name="f9_mut" type="float" min="0" max="1" default="0.1">
    16301639                        <description><![CDATA[How many genes should be mutated during single mutation (1=all genes, 0.1=ten percent)]]></description>
    16311640                </element>
    1632                 <element name="fF_xover" type="float" min="0" max="0.5" default="0.5">
     1641                <element name="fF_xover" type="float" min="0.5" max="1" default="0.5">
    16331642                        <description><![CDATA[0.5 => children are averaged parents.
    1634 0.2 => children are only 20% different from parents.
    1635 0 => each child is identical to one parent (no crossover).]]></description>
     16430.8 => children are only 20% different from parents.
     16441.0 => each child is identical to one parent (no crossover).]]></description>
     1645                </element>
     1646                <element name="fn_xover" type="float" min="0.5" max="1" default="0.9">
     1647                        <description><![CDATA[0.5 => children are averaged parents.
     16480.8 => children are only 20% different from parents.
     16491.0 => each child is identical to one parent (no crossover).]]></description>
     1650                </element>
     1651                <element name="fn_mut_bound_low" type="string" default="[-10.0, -10.0]">
     1652                        <description><![CDATA[A vector of lower bounds (one real value for each variable)]]></description>
     1653                </element>
     1654                <element name="fn_mut_bound_high" type="string" default="[10.0, 10.0]">
     1655                        <description><![CDATA[A vector of higher bounds (one real value for each variable)]]></description>
     1656                </element>
     1657                <element name="fn_mut_stddev" type="string" default="[0.1, 0.1]">
     1658                        <description><![CDATA[A vector of standard deviations (one real value for each variable)]]></description>
    16361659                </element>
    16371660        </type>
     
    17001723                </element>
    17011724                <element name="getConverted" function="true" type="Geno" flags="256">
     1725                        <arguments>
     1726                                <argument name="format" type="string"/>
     1727                        </arguments>
     1728                </element>
     1729                <element name="getConvertedWithCheckpoints" function="true" type="Geno" flags="256">
     1730                        <description><![CDATA[See also Model.newWithCheckpoints()]]></description>
    17021731                        <arguments>
    17031732                                <argument name="format" type="string"/>
     
    18311860                <element name="newFromGeno" function="true" type="Genotype" flags="32">
    18321861                        <arguments>
    1833                                 <argument name="geno" type="Geno"/>
     1862                                <argument type="Geno"/>
    18341863                        </arguments>
    18351864                </element>
    18361865                <element name="newFromCreature" function="true" type="Genotype" flags="32">
    18371866                        <arguments>
    1838                                 <argument name="creature" type="Creature"/>
     1867                                <argument type="Creature"/>
    18391868                        </arguments>
    18401869                </element>
     
    19912020                <element name="stam" type="float" min="0" max="1" default="0.25"/>
    19922021                <element name="i" type="string"/>
    1993                 <element name="Vstyle" type="string" max="-1" default="joint"/>
     2022                <element name="Vstyle" type="string" default="joint"/>
    19942023                <element name="vr" type="float" min="0" max="1" default="1.0"/>
    19952024                <element name="vg" type="float" min="0" max="1" default="1.0" flags="1024"/>
     
    22252254                        </arguments>
    22262255                </element>
     2256                <element name="newWithCheckpoints" function="true" type="Model">
     2257                        <description><![CDATA[Creates a Model with the "Checkpoints" option enabled. Genotype converters supporting Checkpoints provide a sequence of Models that reflects development stages of the creature (this sequence is used purely for debugging and visualization of phenotype growth/development). Checkpoint Models can be accessed using getCheckpoint(i) for i ranging from 0 to numcheckpoints-1. Models created without the Checkpoint option and Models coming from unsupported converters have numcheckpoints=0.]]></description>
     2258                        <arguments>
     2259                                <argument name="Geno object or string genotype" type="untyped"/>
     2260                        </arguments>
     2261                </element>
    22272262                <element name="numparts" type="integer" flags="259"/>
    22282263                <element name="numjoints" type="integer" flags="259"/>
     
    22552290                </element>
    22562291                <element name="bboxSize" type="XYZ" flags="257"/>
     2292                <element name="numcheckpoints" type="integer" flags="259"/>
     2293                <element name="getCheckpoint" function="true" type="Model" flags="288">
     2294                        <description><![CDATA[Checkpoint Model objects are only valid as long as the parent Model object exists.
     2295See also: Model.newWithCheckpoints()
     2296
     2297// incorrect usage - calling getCheckpoint() on a temporary object:
     2298var c=Model.newWithCheckpoints("XXX").getCheckpoint(1).genotype.geno;
     2299
     2300// correct usage - keeping the parent Model reference in 'm':
     2301var m=Model.newWithCheckpoints("XXX");
     2302var c=m.getCheckpoint(1).genotype.geno;
     2303]]></description>
     2304                        <arguments>
     2305                                <argument name="index" type="integer"/>
     2306                        </arguments>
     2307                </element>
     2308                <element name="shape_type" type="integer" min="0" max="3" flags="259"/>
     2309                <element name="solid_model" type="Model" flags="259">
     2310                        <description><![CDATA[Conversion of this Model to solid shapes. Note! Only available when this Model has shape_type==2 (Ball-and-stick).]]></description>
     2311                </element>
    22572312        </type>
    22582313        <type name="ModelGeometry" context="Global context">
     
    25302585                <element name="d" type="string"/>
    25312586                <element name="i" type="string"/>
    2532                 <element name="Vstyle" type="string" max="-1" default="neuro"/>
     2587                <element name="Vstyle" type="string" default="neuro"/>
    25332588                <element name="getInputCount" type="integer" flags="3"/>
    25342589                <element name="getInputNeuroDef" function="true" type="NeuroDef">
     
    30323087                <element name="rz" type="float" flags="1024"/>
    30333088                <element name="i" type="string"/>
    3034                 <element name="Vstyle" type="string" max="-1" default="part"/>
     3089                <element name="Vstyle" type="string" default="part"/>
    30353090                <element name="vs" type="float" min="0.05" max="0.7" default="0.2"/>
    30363091                <element name="vr" type="float" min="0" max="1" default="1.0"/>
     
    31923247                        <description><![CDATA[Delete the creature (remove it without executing the onKill event). Removing creatures inside some event handlers (e.g. onCollision) might be unsafe.]]></description>
    31933248                        <arguments>
    3194                                 <argument name="creature object or index" type="untyped"/>
     3249                                <argument name="Creature object or index" type="untyped"/>
    31953250                        </arguments>
    31963251                </element>
     
    31983253                        <description><![CDATA[Kill the creature (remove it and execute its onKill handler). Killing creatures inside some event handlers (e.g. onCollision) might be unsafe. The recommended and safe way of killing a creature is by setting its energy to 0.]]></description>
    31993254                        <arguments>
    3200                                 <argument name="creature object or index" type="integer"/>
     3255                                <argument name="Creature object or index" type="untyped"/>
    32013256                        </arguments>
    32023257                </element>
     
    36213676                        <description><![CDATA[Creatures grown with warnings will not be simulated. This helps prevent the propagation of faulty genes, because genotypes that cause warnings when interpreted will not reproduce.]]></description>
    36223677                </element>
     3678                <element name="vmdebug" type="integer" min="0" max="1"/>
    36233679                <element name="resetToDefaults" function="true" type="void">
    36243680                        <description><![CDATA[Clears groups and loads default values for simulator parameters, then calls onExpDefLoad() of the current experiment definition.]]></description>
     
    38323888                        <description><![CDATA[]]></description>
    38333889                </element>
     3890                <element name="genoper_fn" type="integer" min="0" max="0" flags="65">
     3891                        <description><![CDATA[]]></description>
     3892                </element>
    38343893                <element name="neuadd_N" type="integer" min="0" max="1">
    38353894                        <description><![CDATA[Standard neuron
     
    42594318                <element name="f4_mut_exmod" type="string" max="30">
    42604319                        <description><![CDATA[Modifiers that will not be added nor deleted during mutation
    4261 (all: LlRrCcQqFfMmIiEeWwAaSs)]]></description>
     4320(all: ,LlRrCcQqFfMmIiEeWwAaSs)]]></description>
    42624321                </element>
    42634322                <element name="f9_mut" type="float" min="0" max="1" default="0.1">
    42644323                        <description><![CDATA[How many genes should be mutated during single mutation (1=all genes, 0.1=ten percent)]]></description>
    42654324                </element>
    4266                 <element name="fF_xover" type="float" min="0" max="0.5" default="0.5">
     4325                <element name="fF_xover" type="float" min="0.5" max="1" default="0.5">
    42674326                        <description><![CDATA[0.5 => children are averaged parents.
    4268 0.2 => children are only 20% different from parents.
    4269 0 => each child is identical to one parent (no crossover).]]></description>
     43270.8 => children are only 20% different from parents.
     43281.0 => each child is identical to one parent (no crossover).]]></description>
     4329                </element>
     4330                <element name="fn_xover" type="float" min="0.5" max="1" default="0.9">
     4331                        <description><![CDATA[0.5 => children are averaged parents.
     43320.8 => children are only 20% different from parents.
     43331.0 => each child is identical to one parent (no crossover).]]></description>
     4334                </element>
     4335                <element name="fn_mut_bound_low" type="string" default="[-10.0, -10.0]">
     4336                        <description><![CDATA[A vector of lower bounds (one real value for each variable)]]></description>
     4337                </element>
     4338                <element name="fn_mut_bound_high" type="string" default="[10.0, 10.0]">
     4339                        <description><![CDATA[A vector of higher bounds (one real value for each variable)]]></description>
     4340                </element>
     4341                <element name="fn_mut_stddev" type="string" default="[0.1, 0.1]">
     4342                        <description><![CDATA[A vector of standard deviations (one real value for each variable)]]></description>
    42704343                </element>
    42714344                <element name="genkonw0" type="integer" min="0" max="1">
     
    42854358                </element>
    42864359                <element name="genkonw5" type="integer" min="0" max="1">
     4360                        <description><![CDATA[]]></description>
     4361                </element>
     4362                <element name="genkonw6" type="integer" min="0" max="1">
    42874363                        <description><![CDATA[]]></description>
    42884364                </element>
     
    48114887                        <description><![CDATA[Creatures grown with warnings will not be simulated. This helps prevent the propagation of faulty genes, because genotypes that cause warnings when interpreted will not reproduce.]]></description>
    48124888                </element>
     4889                <element name="vmdebug" type="integer" min="0" max="1"/>
    48134890                <element name="resetToDefaults" function="true" type="void">
    48144891                        <description><![CDATA[Clears groups and loads default values for simulator parameters, then calls onExpDefLoad() of the current experiment definition.]]></description>
     
    48614938                        <description><![CDATA[Also calls stop() if the simulator is running. Events assocated with the simulator being deleted are cancelled, so the expdef will not see the usual onSlaveStop.]]></description>
    48624939                        <arguments>
    4863                                 <argument name="index_or_object" type="untyped"/>
     4940                                <argument name="slave index or slave Simulator object reference" type="untyped"/>
    48644941                        </arguments>
    48654942                </element>
     
    55815658                <element name="d" type="string"/>
    55825659                <element name="i" type="string"/>
    5583                 <element name="Vstyle" type="string" max="-1" default="neuro"/>
     5660                <element name="Vstyle" type="string" default="neuro"/>
    55845661                <element name="getInputCount" type="integer" flags="3"/>
    55855662                <element name="getInputNeuroDef" function="true" type="NeuroDef">
     
    58075884                <element name="newFromGeno" function="true" type="Genotype" flags="32">
    58085885                        <arguments>
    5809                                 <argument name="geno" type="Geno"/>
     5886                                <argument type="Geno"/>
    58105887                        </arguments>
    58115888                </element>
    58125889                <element name="newFromCreature" function="true" type="Genotype" flags="32">
    58135890                        <arguments>
    5814                                 <argument name="creature" type="Creature"/>
     5891                                <argument type="Creature"/>
    58155892                        </arguments>
    58165893                </element>
     
    63296406                <element name="stam" type="float" min="0" max="1" default="0.25"/>
    63306407                <element name="i" type="string"/>
    6331                 <element name="Vstyle" type="string" max="-1" default="joint"/>
     6408                <element name="Vstyle" type="string" default="joint"/>
    63326409                <element name="vr" type="float" min="0" max="1" default="1.0"/>
    63336410                <element name="vg" type="float" min="0" max="1" default="1.0" flags="1024"/>
     
    63426419        <type name="m" context="Visual style definition">
    63436420                <element name="se" type="float" flags="1024"/>
    6344                 <element name="Vstyle" type="string" max="-1"/>
     6421                <element name="Vstyle" type="string"/>
    63456422        </type>
    63466423        <type name="Material" context="Visual style definition">
     
    63976474                <element name="d" type="string"/>
    63986475                <element name="i" type="string"/>
    6399                 <element name="Vstyle" type="string" max="-1" default="neuro"/>
     6476                <element name="Vstyle" type="string" default="neuro"/>
    64006477                <element name="getInputCount" type="integer" flags="3"/>
    64016478                <element name="getInputNeuroDef" function="true" type="NeuroDef">
     
    64366513                <element name="rz" type="float" flags="1024"/>
    64376514                <element name="i" type="string"/>
    6438                 <element name="Vstyle" type="string" max="-1" default="part"/>
     6515                <element name="Vstyle" type="string" default="part"/>
    64396516                <element name="vs" type="float" min="0.05" max="0.7" default="0.2"/>
    64406517                <element name="vr" type="float" min="0" max="1" default="1.0"/>
     
    68076884                        <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>
    68086885                        <arguments>
    6809                                 <argument name="Object" type="Object"/>
    6810                                 <argument name="Column Descriptions" type="string"/>
     6886                                <argument type="Object"/>
     6887                                <argument name="column descriptions" type="string"/>
    68116888                        </arguments>
    68126889                </element>
     
    68146891                        <description><![CDATA[Returns the formatted string taking data from the supplied object.]]></description>
    68156892                        <arguments>
    6816                                 <argument name="Object" type="Object"/>
     6893                                <argument type="Object"/>
    68176894                        </arguments>
    68186895                </element>
     
    68236900                        <description><![CDATA[Low level call, adds a single column. "prepare" is better.]]></description>
    68246901                        <arguments>
    6825                                 <argument name="Field#" type="integer"/>
    6826                                 <argument name="Column width" type="integer"/>
     6902                                <argument name="field index" type="integer"/>
     6903                                <argument name="column width" type="integer"/>
    68276904                        </arguments>
    68286905                </element>
Note: See TracChangeset for help on using the changeset viewer.