public class DefaultConstraint
extends net.ssehub.easy.varModel.model.Constraint
Constraint.Type.DEFAULT constraint. This shall avoid requiring an
attribute for this purpose for all constraints and using it just for temporary reasoning ones.| Modifier and Type | Field and Description |
|---|---|
private ConstraintList |
defaultConstraints |
private ConstraintList |
deferredDefaultConstraints |
| Constructor and Description |
|---|
DefaultConstraint(net.ssehub.easy.varModel.cst.ConstraintSyntaxTree consSyntax,
net.ssehub.easy.varModel.model.IModelElement parent)
Creates a new constraint from an already parsed syntax tree.
|
| Modifier and Type | Method and Description |
|---|---|
net.ssehub.easy.varModel.model.Constraint |
createConstraint(net.ssehub.easy.varModel.cst.ConstraintSyntaxTree consSyntax) |
int |
getAttachedConstraintsSize()
Returns the number of attached constraints.
|
ConstraintList |
getDefaultConstraints()
Returns the default constraint list explicitly.
|
ConstraintList |
getDeferredDefaultConstraints()
Returns the deferred default constraint list explicitly.
|
net.ssehub.easy.varModel.model.Constraint.IConstraintType |
getType()
Returns the conceptual type of the constraint.
|
void |
setDefaultConstraints(ConstraintList defaultConstraints)
Sets the default constraint list explicitly.
|
void |
setDeferredDefaultConstraints(ConstraintList deferredDefaultConstraints)
Sets the deferred default constraint list explicitly.
|
accept, getAttachedTo, getConsSyntax, isBooleanConstraint, setConsSyntax, toStringaccept, getNameSpace, getParent, getProject, getQualifiedName, getTopLevelParent, isTopLevel, setParentfindAttribute, getComment, getName, getUniqueName, isTransparent, propagateAttribute, setComment, setNameprivate ConstraintList defaultConstraints
private ConstraintList deferredDefaultConstraints
public DefaultConstraint(net.ssehub.easy.varModel.cst.ConstraintSyntaxTree consSyntax,
net.ssehub.easy.varModel.model.IModelElement parent)
throws net.ssehub.easy.varModel.cst.CSTSemanticException
consSyntax - the constraint syntax treeparent - the object, in which this specific one is embeddednet.ssehub.easy.varModel.cst.CSTSemanticException - in case that the constraint semantics cannot be resolved
or that the specified constraint does not evaluate to a boolean expressionpublic void setDefaultConstraints(ConstraintList defaultConstraints)
defaultConstraints - the default constraints, may be null for nonepublic void setDeferredDefaultConstraints(ConstraintList deferredDefaultConstraints)
deferredDefaultConstraints - the deferred default constraints, may be null for nonepublic ConstraintList getDefaultConstraints()
public ConstraintList getDeferredDefaultConstraints()
public int getAttachedConstraintsSize()
public net.ssehub.easy.varModel.model.Constraint.IConstraintType getType()
getType in class net.ssehub.easy.varModel.model.ConstraintConstraint.Type.DEFAULT)public net.ssehub.easy.varModel.model.Constraint createConstraint(net.ssehub.easy.varModel.cst.ConstraintSyntaxTree consSyntax)
throws net.ssehub.easy.varModel.cst.CSTSemanticException
createConstraint in class net.ssehub.easy.varModel.model.Constraintnet.ssehub.easy.varModel.cst.CSTSemanticExceptionCopyright © 2009 - 2018 SSE. All Rights Reserved.