Class: Rule

SolidML.Rule()

Represents rules in Eisen Script.

Constructor

new Rule()

[SHOULD NOT CREATE new instance] SolidML.Rule is create by SolidML
Source:

Members

colorpoolInstance :SolidML.ColorPool

[read only] colorpool instance for this rule.
Type:
Source:

maxdepth :number

maxdepth value of the rule set by maxdepth option in Eisen Script. default is same as the Criteria.maxdepth
Type:
  • number
Source:

maxdepthLabel :string

termination rule name set by ">" option in Eisen Script. default is null
Type:
  • string
Source:

maxsize :number

[read only] maximum size for this rule.
Type:
  • number
Source:

minsize :number

[read only] minimum size for this rule.
Type:
  • number
Source:

name :string

name of this rule. "$root" is set for top most rule
Type:
  • string
Source:

parent :SolidML.Rule

parent rule. null for top most rule
Type:
Source:

weight :number

weight value of the rule set by weight option in Eisen Script. default is 1
Type:
  • number
Source:

Methods

find(label) → {SolidML.Rule}

search rules by label
Parameters:
Name Type Description
label string label to search. search child rules first, then search ancestor rules.
Source:
Returns:
returns rule insatnce found by the label
Type
SolidML.Rule

isEmpty()

Source:
Returns:
Returns true when there are no operation inside