Group
Description
A class for grouping objects.
Properties
length | The number of members in the group. |
Methods
addMember | Adds an object to the group. |
indexOf | Returns the index of the object in the group. |
isMember | Checks if the object is a member of the group. |
removeMember | Removes an object from the group. |
toFlatArray | Converts the group and any nested groups into a single Array of group members. |
Constructor
Group | Creates a reference to a group. |
Operators
[] | Gets an individual group member by index. |
Details
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Group.isMember()
int isMember( treenode object , int recursive ) |
Parameters
object | The object to look for in the group. |
recursive | Should groups contained by this group also be searched. |
Returns
int | A 1 if the object is a member of the group, 0 otherwise. |
Description
Checks if the object is a member of the group.
This code checks if Processor1 is a direct member of the group:
group.isMember(Model.find("Processor1"));
This code checks if Processor1 is a member of the group or the member of any of the groups contained by the group:
group.isMember(Model.find("Processor1"), 1);
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com