public abstract class AbstractSymbolicAssociationValueContainer extends AbstractElement implements ISymbolicAssociationValueContainer
ISymbolicAssociationValueContainer
.Modifier and Type | Field and Description |
---|---|
private ImmutableList<ISymbolicAssociation> |
associations
The contained
ISymbolicAssociation s. |
private ImmutableList<ISymbolicValue> |
values
The contained
ISymbolicValue s. |
Constructor and Description |
---|
AbstractSymbolicAssociationValueContainer(IModelSettings settings)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAssociation(ISymbolicAssociation association)
Adds a new
ISymbolicAssociation . |
void |
addValue(ISymbolicValue value)
Adds a new
ISymbolicValue . |
ISymbolicAssociation |
getAssociation(IProgramVariable programVariable,
boolean isArrayIndex,
Term arrayIndex,
Term condition)
Returns the
ISymbolicAssociation with the given IProgramVariable . |
ImmutableList<ISymbolicAssociation> |
getAssociations()
Returns the contained associations.
|
ISymbolicValue |
getValue(IProgramVariable programVariable,
boolean isArrayIndex,
Term arrayIndex,
Term condition)
Returns the
ISymbolicValue with the given IProgramVariable . |
ImmutableList<ISymbolicValue> |
getValues()
Returns the contained values.
|
formatTerm, getSettings
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSettings
private ImmutableList<ISymbolicAssociation> associations
ISymbolicAssociation
s.private ImmutableList<ISymbolicValue> values
ISymbolicValue
s.public AbstractSymbolicAssociationValueContainer(IModelSettings settings)
settings
- The IModelSettings
to use.public ImmutableList<ISymbolicAssociation> getAssociations()
getAssociations
in interface ISymbolicAssociationValueContainer
public void addAssociation(ISymbolicAssociation association)
ISymbolicAssociation
.value
- The new ISymbolicAssociation
to add.public ISymbolicAssociation getAssociation(IProgramVariable programVariable, boolean isArrayIndex, Term arrayIndex, Term condition)
ISymbolicAssociation
with the given IProgramVariable
.getAssociation
in interface ISymbolicAssociationValueContainer
programVariable
- The IProgramVariable
for which the ISymbolicAssociation
is requested.isArrayIndex
- Is array index?arrayIndex
- The array index.condition
- The optional condition under which this association is valid.ISymbolicAssociation
or null
if no ISymbolicAssociation
is available with the given IProgramVariable
.public ImmutableList<ISymbolicValue> getValues()
getValues
in interface ISymbolicAssociationValueContainer
public void addValue(ISymbolicValue value)
ISymbolicValue
.value
- The new ISymbolicValue
to add.public ISymbolicValue getValue(IProgramVariable programVariable, boolean isArrayIndex, Term arrayIndex, Term condition)
ISymbolicValue
with the given IProgramVariable
.getValue
in interface ISymbolicAssociationValueContainer
programVariable
- The IProgramVariable
for which the ISymbolicValue
is requested.isArrayIndex
- Is array index?arrayIndex
- The array index.condition
- The optional condition under which this value is valid.ISymbolicValue
or null
if no ISymbolicValue
is available with the given IProgramVariable
.