Changeset 328


Ignore:
Timestamp:
02/06/15 01:23:07 (9 years ago)
Author:
sz
Message:

min/max/default for string fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/FramclipsePlugin/src/main/resources/framscript.xml

    r327 r328  
    2727        <type name="style" context="style file">
    2828<description><![CDATA[General visual style properties.]]></description>
    29                 <element name="style" type="string"/>
     29                <element name="style" type="string" default="standard"/>
    3030                <element name="name" type="string" flags="19"/>
    3131                <element name="info" type="string" flags="19"/>
     
    112112function onDied(cr) {Simulator.print("Creature "+cr.name+" has died");}
    113113See also: Population.]]></description>
    114                 <element name="name" type="string"/>
     114                <element name="name" type="string" max="30"/>
    115115                <element name="genotype" type="string" flags="1"/>
    116116                <element name="info" type="string">
     
    394394<description><![CDATA[A data object consisting of the same fields as the serialized Creature. Typically used for reading a Creature back from a file, then Population.add(snapshot_object) creates the Creature object from the snapshot.]]></description>
    395395                <element name="new" function="true" type="Creature"><arguments/></element>
    396                 <element name="name" type="string"/>
     396                <element name="name" type="string" max="30"/>
    397397                <element name="genotype" type="string"/>
    398398                <element name="info" type="string">
     
    13111311                        <description><![CDATA[Modifiers: LlRrCcQqFfMmIiWwEeAaSsDdGgBbHh]]></description>
    13121312                </element>
    1313                 <element name="f1_mut_exmod" type="string">
     1313                <element name="f1_mut_exmod" type="string" max="30">
    13141314                        <description><![CDATA[Modifiers that will not be added nor deleted during mutation
    13151315(all: LlRrCcQqFfMmIiWwEeAaSsDdGgBbHh)]]></description>
     
    14491449<description><![CDATA[All information about a single genotype.
    14501450This is a genetics-only object which does not contain any performance data. See also: Genotype class]]></description>
    1451                 <element name="name" type="string" flags="256"/>
     1451                <element name="name" type="string" max="40" flags="256"/>
    14521452                <element name="rawgenotype" type="string" flags="257">
    14531453                        <description><![CDATA[Genotype, excluding the format specifier]]></description>
     
    14941494<description><![CDATA[A Genotype with the associated performance information. Adding genotypes to GenePool makes them accessible in Framsticks GUI and enables the use of GenePool selection methods.
    14951495Before version 4.0rc4 the static Genotype object was used in functions operating on the "selected" genotype. This is now deprecated as all operations can be performed using the more convenient direct access (see GenePools).]]></description>
    1496                 <element name="name" type="string"/>
     1496                <element name="name" type="string" max="40"/>
    14971497                <element name="genotype" type="string"/>
    14981498                <element name="info" type="string">
     
    16991699                <element name="stam" type="float" min="0" max="1" default="0.25"/>
    17001700                <element name="i" type="string"/>
    1701                 <element name="Vstyle" type="string"/>
     1701                <element name="Vstyle" type="string" max="-1" default="joint"/>
    17021702                <element name="vr" type="float" min="0" max="1" default="0.5"/>
    17031703                <element name="vg" type="float" min="0" max="1" default="0.5" flags="1024"/>
     
    22272227                <element name="d" type="string"/>
    22282228                <element name="i" type="string"/>
    2229                 <element name="Vstyle" type="string"/>
     2229                <element name="Vstyle" type="string" max="-1" default="neuro"/>
    22302230                <element name="getInputCount" type="integer" flags="3"/>
    22312231                <element name="getInputNeuroDef" function="true" type="NeuroDef" flags="3">
     
    27272727                <element name="rz" type="float" flags="1024"/>
    27282728                <element name="i" type="string"/>
    2729                 <element name="Vstyle" type="string"/>
     2729                <element name="Vstyle" type="string" max="-1" default="part"/>
    27302730                <element name="vs" type="float" min="0.05" max="0.7" default="0.2"/>
    27312731                <element name="vr" type="float" min="0" max="1" default="0.5"/>
     
    32443244<arguments/></element>
    32453245                <element name="loadexpdef" function="true" type="void"><arguments/></element>
    3246                 <element name="usercode" type="string" flags="2048">
     3246                <element name="usercode" type="string" min="1" flags="2048">
    32473247                        <description><![CDATA[This script overrides the experiment definition]]></description>
    32483248                </element>
     
    38153815                        <description><![CDATA[Modifiers: LlRrCcQqFfMmIiWwEeAaSsDdGgBbHh]]></description>
    38163816                </element>
    3817                 <element name="f1_mut_exmod" type="string">
     3817                <element name="f1_mut_exmod" type="string" max="30">
    38183818                        <description><![CDATA[Modifiers that will not be added nor deleted during mutation
    38193819(all: LlRrCcQqFfMmIiWwEeAaSsDdGgBbHh)]]></description>
     
    43934393<arguments/></element>
    43944394                <element name="loadexpdef" function="true" type="void"><arguments/></element>
    4395                 <element name="usercode" type="string" flags="2048">
     4395                <element name="usercode" type="string" min="1" flags="2048">
    43964396                        <description><![CDATA[This script overrides the experiment definition]]></description>
    43974397                </element>
     
    51265126                <element name="d" type="string"/>
    51275127                <element name="i" type="string"/>
    5128                 <element name="Vstyle" type="string"/>
     5128                <element name="Vstyle" type="string" max="-1" default="neuro"/>
    51295129                <element name="getInputCount" type="integer" flags="3"/>
    51305130                <element name="getInputNeuroDef" function="true" type="NeuroDef" flags="3">
     
    52535253<description><![CDATA[A Genotype with the associated performance information. Adding genotypes to GenePool makes them accessible in Framsticks GUI and enables the use of GenePool selection methods.
    52545254Before version 4.0rc4 the static Genotype object was used in functions operating on the "selected" genotype. This is now deprecated as all operations can be performed using the more convenient direct access (see GenePools).]]></description>
    5255                 <element name="name" type="string"/>
     5255                <element name="name" type="string" max="40"/>
    52565256                <element name="genotype" type="string"/>
    52575257                <element name="info" type="string">
     
    53635363function onDied(cr) {Simulator.print("Creature "+cr.name+" has died");}
    53645364See also: Population.]]></description>
    5365                 <element name="name" type="string"/>
     5365                <element name="name" type="string" max="30"/>
    53665366                <element name="genotype" type="string" flags="1"/>
    53675367                <element name="info" type="string">
     
    57255725                <element name="stam" type="float" min="0" max="1" default="0.25"/>
    57265726                <element name="i" type="string"/>
    5727                 <element name="Vstyle" type="string"/>
     5727                <element name="Vstyle" type="string" max="-1" default="joint"/>
    57285728                <element name="vr" type="float" min="0" max="1" default="0.5"/>
    57295729                <element name="vg" type="float" min="0" max="1" default="0.5" flags="1024"/>
     
    57385738        <type name="m" context="Visual style definition">
    57395739                <element name="se" type="float" flags="1024"/>
    5740                 <element name="Vstyle" type="string"/>
     5740                <element name="Vstyle" type="string" max="-1"/>
    57415741        </type>
    57425742        <type name="Material" context="Visual style definition">
     
    57935793                <element name="d" type="string"/>
    57945794                <element name="i" type="string"/>
    5795                 <element name="Vstyle" type="string"/>
     5795                <element name="Vstyle" type="string" max="-1" default="neuro"/>
    57965796                <element name="getInputCount" type="integer" flags="3"/>
    57975797                <element name="getInputNeuroDef" function="true" type="NeuroDef" flags="3">
     
    58335833                <element name="rz" type="float" flags="1024"/>
    58345834                <element name="i" type="string"/>
    5835                 <element name="Vstyle" type="string"/>
     5835                <element name="Vstyle" type="string" max="-1" default="part"/>
    58365836                <element name="vs" type="float" min="0.05" max="0.7" default="0.2"/>
    58375837                <element name="vr" type="float" min="0" max="1" default="0.5"/>
     
    59455945        </type>
    59465946        <type name="VisualStyle" context="Visual style definition">
    5947                 <element name="style" type="string"/>
     5947                <element name="style" type="string" default="standard"/>
    59485948                <element name="name" type="string" flags="19"/>
    59495949                <element name="info" type="string" flags="19"/>
     
    62866286        </type>
    62876287        <type name="ImageExport" context="Command line interface">
    6288                 <element name="imgex_outdir" type="string">
     6288                <element name="imgex_outdir" type="string" default=".">
    62896289                        <description><![CDATA[Directory name WITHOUT trailing '/' sign]]></description>
    62906290                </element>
    6291                 <element name="imgex_outfiles" type="string">
     6291                <element name="imgex_outfiles" type="string" default="scene_38288288.jpg">
    62926292                        <description><![CDATA[Frame number replaces %d (eg. 'image%03d.jpg')]]></description>
    62936293                </element>
     
    64706470        </type>
    64716471        <type name="VisualStyle" context="Command line interface">
    6472                 <element name="style" type="string"/>
     6472                <element name="style" type="string" default="standard"/>
    64736473                <element name="name" type="string" flags="19"/>
    64746474                <element name="info" type="string" flags="19"/>
Note: See TracChangeset for help on using the changeset viewer.