}
}
}
ActionDecorator nodeDec;
PaStepStub paStepStub;
try {
nodeDec = (ActionDecorator) translator.getDecoratorsFactory().getDecorator(node);
paStepStub = nodeDec.getPaStepStub();
if (paStepStub == null) throw new TranslationException(this, "Unable to generate property for node \"" + node.getQualifiedName() + "\" : no PaStep stereotype associated.");
} catch (InvalidContextException e) {
throw new TranslationException(this, "Unable to generate property for node \"" + node.getQualifiedName() + "\"", e);
} catch (ClassNotFoundException e) {
throw new TranslationException(this, "Unable to generate property for node \"" + node.getQualifiedName() + "\"", e);
}
String comment = "Reliability value computed from " + nodeName;
String rule = chosenProp;
if (paStepStub.getRep() > 1) {
for (int i = 0; i < paStepStub.getRep(); i++) {
printComment(comment + " after " + Integer.toString(i) + " attempts.");
rule = chosenProp;
rule += " { " + nodeTranslator.getStateVariable() + " = " + Integer.toString(state + i) ;
rule += extraPredicates + " }";