Package com.comsol.model
Interface Constr
-
- All Superinterfaces:
ModelEntity
,PrimitiveModelEntity
public interface Constr extends ModelEntity
Constraint.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConstrFeature
create(java.lang.String tag)
Create a child feature.ConstrFeatureList
feature()
Returns all constraint features.ConstrFeature
feature(java.lang.String tag)
Returns a constraint feature.int
global()
Returns the number of components in a global constraint, or -1 if the constraint is shape function-based.Constr
global(int nglobal)
Sets the number of components of a global constraint.java.lang.String[]
shape()
Returns the tags of the shape functions associated with the constraint.Constr
shape(java.lang.String[] shtags)
Points to the shape functions associated with the constraint.-
Methods inherited from interface com.comsol.model.ModelEntity
active, author, 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.PrimitiveModelEntity
getContainer, getDisplayString, resolveModelPath
-
-
-
-
Method Detail
-
create
ConstrFeature create(java.lang.String tag)
Create a child feature.- Parameters:
tag
- Feature tag.- Returns:
- Created feature.
-
feature
ConstrFeatureList feature()
Returns all constraint features.- Returns:
- List of constraint features.
-
feature
ConstrFeature feature(java.lang.String tag)
Returns a constraint feature.- Parameters:
tag
- Constraint feature tag.- Returns:
- Constraint feature.
-
global
int global()
Returns the number of components in a global constraint, or -1 if the constraint is shape function-based.- Returns:
- Number of components or -1.
-
global
Constr global(int nglobal)
Sets the number of components of a global constraint. This also signals that the constraint is global rather than shape function-based.- Parameters:
nglobal
- Number of components.- Returns:
- Constraint entity.
-
shape
java.lang.String[] shape()
Returns the tags of the shape functions associated with the constraint.- Returns:
- Shape function tags.
-
shape
Constr shape(java.lang.String[] shtags)
Points to the shape functions associated with the constraint.- Parameters:
shtags
- Shape function tags.- Returns:
- Constraint.
-
-