Download Stateflow User's Guide

Transcript
find
'property'
The specifier takes on the name of the property. Value is the
string value of the specified property for the objects you want to
find.
'-property' Following value is the string name of the property that belongs to
the objects you want to find.
'-xor'
No value is paired to this specifier. Instead, this specifier relates
the previous specifier-value pair to the following specifier-value
pair in an XOR relation.
'-regexp'
No value follows this specifier. Instead, this specifier indicates
that the value of the following specifier-value pair contains a
regular expression.
Returns
objArray
Array of objects found matching the criteria specified (see
Arguments)
Example
If a Chart object c represents a Stateflow chart, the command
states=c.find('-isa','Stateflow.State') returns an array, states, of all
the states in the chart, and the command states=c.find('Name','A') returns
an array of all objects whose Name property is 'A'.
If state A, which is represented by State object sA, contains two states, A1 and
A2, and you specify a find command that finds all the states in A as follows,
states= sA.find( '-isa','Stateflow.State')
then the above command finds three states: A, A1, and A2.
See Also
The methods findDeep and findShallow
16-15