public class AssertionGroup extends AssertionVariableContainer
Constructor and Description |
---|
AssertionGroup(DecStatement decStatement,
java.lang.String name,
AssertionContainer parent,
ru.ispras.fortress.expression.Node node)
Constructs object with specified parameters.
|
AssertionGroup(DecStatement decStatement,
java.lang.String name,
AssertionContainer parent,
ru.ispras.fortress.expression.Node initValueState,
java.util.List<GuardedAction> rstGuardedActions)
Constructs object with specified parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addAssertion(ru.ispras.fortress.expression.Node assertion)
Adds the specified expression that uses variables
that are already declared at the parent container.
|
boolean |
equals(java.lang.Object obj) |
int |
getAssertionNum()
Returns the number of related assertions.
|
java.util.List<ru.ispras.fortress.expression.Node> |
getAssertions()
Returns a collection of assertions.
|
ru.ispras.fortress.expression.Node |
getInitValueState()
Returns node of the EFSM state that is compliant with initial values of state-like variables.
|
java.lang.String |
getName()
Returns object's name.
|
AssertionContainer |
getParent()
Returns parent container.
|
java.util.List<GuardedAction> |
getRstGuardedAction()
Returns resetting guarded action.
|
int |
hashCode() |
declareVariables, setResetVariable
containsInput, containsOutput, containsRegister, containsVariable, containsVariable, declareVariable, declareVariable, declareVariable, declareVariable, declareVariables, getDataType, getDeclaration, getDeclarationMap, getDeclarations, getInitialValue, getInputNames, getInputs, getInvariant, getOutputNames, getOutputs, getRegisterNames, getVariable, getVariableNames, getVariableNum, getVariables, removeDeclaration
addMetaInfo, addMetaInfo, addMetaInfo, getMetaInfo, getMetaInfo, hasMetaInfo, hasMetaInfo
public AssertionGroup(DecStatement decStatement, java.lang.String name, AssertionContainer parent, ru.ispras.fortress.expression.Node initValueState, java.util.List<GuardedAction> rstGuardedActions)
decStatement
- Statement which variable declarations are to be copied.name
- Name of this object.parent
- Parent container for this object.initValueState
- The init value state node.rstGuardedActions
- The sequence of resetting guarded actions.java.lang.IllegalArgumentException
- when any of the arguments except resetting
guarded action and declaration statement is null
.public AssertionGroup(DecStatement decStatement, java.lang.String name, AssertionContainer parent, ru.ispras.fortress.expression.Node node)
decStatement
- The statement which variable declarations are to be copied.name
- Name of this object.parent
- Parent container for this object.node
- The init value state node.java.lang.IllegalArgumentException
- when any of the arguments is null
.public java.lang.String getName()
public AssertionContainer getParent()
public ru.ispras.fortress.expression.Node getInitValueState()
public java.util.List<GuardedAction> getRstGuardedAction()
public void addAssertion(ru.ispras.fortress.expression.Node assertion)
assertion
- Assertion to be added to this object.java.lang.IllegalArgumentException
- when argument is null
.RetrascopeRuntimeException
- when the specified expression
contains at least one variable that is undeclared
at the parent container.public java.util.List<ru.ispras.fortress.expression.Node> getAssertions()
public int getAssertionNum()
public boolean equals(java.lang.Object obj)
equals
in class AssertionVariableContainer
public int hashCode()
hashCode
in class AssertionVariableContainer