Search in sources :

Example 1 with ASeesModelClause

use of de.be4.classicalb.core.parser.node.ASeesModelClause in project prob2 by bendisposto.

the class EventBMachineTranslator method processContexts.

private ASeesModelClause processContexts() {
    List<Context> sees = machine.getSees();
    List<TIdentifierLiteral> contextNames = new ArrayList<>();
    for (Context context : sees) {
        contextNames.add(new TIdentifierLiteral(context.getName()));
    }
    return new ASeesModelClause(contextNames);
}
Also used : Context(de.prob.model.eventb.Context) ASeesModelClause(de.be4.classicalb.core.parser.node.ASeesModelClause) ArrayList(java.util.ArrayList) TIdentifierLiteral(de.be4.classicalb.core.parser.node.TIdentifierLiteral)

Aggregations

ASeesModelClause (de.be4.classicalb.core.parser.node.ASeesModelClause)1 TIdentifierLiteral (de.be4.classicalb.core.parser.node.TIdentifierLiteral)1 Context (de.prob.model.eventb.Context)1 ArrayList (java.util.ArrayList)1