Package com.comsol.model
Interface NodeGroup
- 
- All Superinterfaces:
- java.lang.Iterable<ModelEntity>,- ModelEntity,- PrimitiveModelEntity,- PropFeature,- SelectionContainer,- SelectionEntity
 
 public interface NodeGroup extends PropFeature, java.lang.Iterable<ModelEntity> Node group.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ModelEntityactive(boolean flag)Makes the group members active or inactive.NodeGroupadd(java.lang.String tag)Adds a model entity to the group.NodeGroupadd(java.lang.String type, java.lang.String tag)Adds a model entity to the group.NodeGroupcreate(java.lang.String tag)Create a node group.NodeGroupListfeature()Returns all the sub node groups.NodeGroupfeature(java.lang.String tag)Returns sub-node group with correct tag.ModelEntityget(int index)Returns the group member at the given position.ModelEntitygetAfter()Returns the model entity which this group is placed after.java.lang.String[]members()Returns the tags of the group members.java.lang.String[]members(java.lang.String type)Returns the tags of the group members of the specified type.NodeGroupplaceAfter(java.lang.String tag)Places the group after another entity.NodeGroupplaceAfter(java.lang.String type, java.lang.String tag)Places the group after another entity.NodeGroupremove(java.lang.String tag, boolean moveBefore)Removes a model entity from the group.NodeGroupremove(java.lang.String type, java.lang.String tag, boolean moveBefore)Removes a model entity from the group.intsize()Returns the number of group members.- 
Methods inherited from interface com.comsol.model.ModelEntityauthor, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
 - 
Methods inherited from interface com.comsol.model.PrimitiveModelEntitygetContainer, getDisplayString, resolveModelPath
 - 
Methods inherited from interface com.comsol.model.PropFeaturegetAllowedPropertyValues, getBoolean, getBoolean, getBoolean, getBooleanArray, getBooleanMatrix, getDouble, getDouble, getDouble, getDoubleArray, getDoubleMatrix, getEntryKeyIndex, getEntryKeys, getInt, getInt, getInt, getIntArray, getIntMatrix, getReferenceArray, getString, getString, getString, getString, getStringArray, getStringMatrix, getType, getValueType, hasProperty, hasSelection, move, move, properties, remove, remove, selection, set, set, set, set, set, set, set, set, set, set, set, set, setEntry, setEntry, setEntry, setEntry, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex
 - 
Methods inherited from interface com.comsol.model.SelectionEntityselection
 
- 
 
- 
- 
- 
Method Detail- 
activeModelEntity active(boolean flag) Makes the group members active or inactive. If inactivating, members which cannot be inactivated are ignored.- Specified by:
- activein interface- ModelEntity
- Parameters:
- flag-- true: make active;- false: make inactive.
- Returns:
- Model entity.
 
 - 
addNodeGroup add(java.lang.String tag) Adds a model entity to the group.- Parameters:
- tag- The tag of the entity to add.
- Returns:
- The node group.
 
 - 
addNodeGroup add(java.lang.String type, java.lang.String tag) Adds a model entity to the group.- Parameters:
- type- The model entity type.
- tag- The tag of the entity to add.
- Returns:
- The node group.
 
 - 
createNodeGroup create(java.lang.String tag) Create a node group.- Parameters:
- tag- Group tag.
- Returns:
- Created node group.
 
 - 
featureNodeGroupList feature() Returns all the sub node groups.- Returns:
- List of node groups.
 
 - 
featureNodeGroup feature(java.lang.String tag) Returns sub-node group with correct tag.- Parameters:
- tag- NodeGroup tag.
- Returns:
- NodeGroup.
 
 - 
getModelEntity get(int index) Returns the group member at the given position.- Parameters:
- index- The position among the members.
- Returns:
- Group member at the given position.
 
 - 
getAfterModelEntity getAfter() Returns the model entity which this group is placed after. Ifnullis returned, the group is placed before the first model entity.- Returns:
- A model entity or null.
 
 - 
membersjava.lang.String[] members() Returns the tags of the group members. If there are members of more than one type, the members of the same type as the first member are returned. Usemembers(String)to get the members of a specific type.- Returns:
- Entity tags.
 
 - 
membersjava.lang.String[] members(java.lang.String type) Returns the tags of the group members of the specified type.- Parameters:
- type- The model entity type.
- Returns:
- Entity tags.
 
 - 
placeAfterNodeGroup placeAfter(java.lang.String tag) Places the group after another entity.- Parameters:
- tag- The tag of the entity to place the group after. To place the group before the first entity use- nullor an empty string as tag.
- Returns:
- The node group.
 
 - 
placeAfterNodeGroup placeAfter(java.lang.String type, java.lang.String tag) Places the group after another entity.- Parameters:
- type- The model entity type.
- tag- The tag of the entity to place the group after. To place the group before the first entity use- nullor an empty string as tag.
- Returns:
- The node group.
 
 - 
removeNodeGroup remove(java.lang.String tag, boolean moveBefore) Removes a model entity from the group.- Parameters:
- tag- The tag of the entity to remove.
- moveBefore- Whether to move the entity before or after the other members of the group.
- Returns:
- The node group.
 
 - 
removeNodeGroup remove(java.lang.String type, java.lang.String tag, boolean moveBefore) Removes a model entity from the group.- Parameters:
- type- The model entity type.
- tag- The tag of the entity to remove.
- moveBefore- Whether to move the entity before or after the other members of the group.
- Returns:
- The node group.
 
 - 
sizeint size() Returns the number of group members.- Returns:
- Number of entities.
 
 
- 
 
-