T
- The type of the Condition this service applies topublic interface ConditionService<T extends Condition>
ConditionService
is used to retrieve the relevant information for conditions.Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(T condition,
org.eclipse.emf.ecore.EObject domainModel)
Evaluates the given condition.
|
boolean |
evaluateChangedValues(T condition,
org.eclipse.emf.ecore.EObject domainModel,
Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleNewValues)
Evaluates the given condition.
|
Set<UniqueSetting> |
getConditionSettings(T condition,
org.eclipse.emf.ecore.EObject domainModel)
The set of
UniqueSetting that are relevant for the provided condition and domain model. |
org.eclipse.emf.ecore.EClass |
getConditionType()
The EClass this ConditionService is implemented for.
|
Set<VDomainModelReference> |
getDomainModelReferences(T condition)
The Set of
VDomainModelReference that are relevant for the condition. |
org.eclipse.emf.ecore.EClass getConditionType()
Condition
Set<UniqueSetting> getConditionSettings(T condition, org.eclipse.emf.ecore.EObject domainModel)
UniqueSetting
that are relevant for the provided condition and domain model.condition
- The Condition
to get the UniqueSettings fordomainModel
- The EObject
to use for retrievingboolean evaluate(T condition, org.eclipse.emf.ecore.EObject domainModel)
condition
- The Condition to evaluatedomainModel
- The root domain object of this condition.true
, if the condition matches, false
otherwiseboolean evaluateChangedValues(T condition, org.eclipse.emf.ecore.EObject domainModel, Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleNewValues)
condition
- The Condition to evaluatedomainModel
- The root domain object of this condition.possibleNewValues
- the new value that should be compared against the expected value of the conditiontrue
, if the condition matches, false
otherwiseSet<VDomainModelReference> getDomainModelReferences(T condition)
VDomainModelReference
that are relevant for the condition.condition
- The Condition
to retrieve the VDMRs forCopyright © 2019. All rights reserved.