in_oActualTCGTransition.addPrecondition(TCGDisjunctiveNormalFormHelperClass.getDNFForCondition(
sPreExpression, oBehavior, oContextClass,
Configuration.getOCLPreId(),
in_bSplitInequationsBeforeTestGoalDefinition));
}
Constraint oPreConstraint = oBehavior.getPreconditions().get(0);
String sPreExpression =
SystemModelHelper.getConstraintSpecification(oPreConstraint);
in_oActualTCGTransition.setPrecondition(
TCGDisjunctiveNormalFormHelperClass.getDNFForCondition(
sPreExpression, oBehavior, oContextClass,
Configuration.getOCLPreId(),
in_bSplitInequationsBeforeTestGoalDefinition));
}
}
// add the postcondition of the referenced operation
if(oBehavior.getPostconditions() != null)
{
if(!oBehavior.getPostconditions().isEmpty())
{
for (Constraint oPostConstraint : oBehavior.getPostconditions()) {
String sPostExpression =
SystemModelHelper.getConstraintSpecification(oPostConstraint);
in_oActualTCGTransition.addPostcondition(TCGDisjunctiveNormalFormHelperClass.getDNFForCondition(
sPostExpression, oBehavior, oContextClass,
Configuration.getOCLPreId(),
in_bSplitInequationsBeforeTestGoalDefinition));
}
Constraint oPostConstraint = oBehavior.getPostconditions().get(0);
String sPostExpression =
SystemModelHelper.getConstraintSpecification(oPostConstraint);
in_oActualTCGTransition.setPostcondition(
TCGDisjunctiveNormalFormHelperClass.getDNFForCondition(
sPostExpression, oBehavior, oContextClass,