Search in sources :

Example 1 with MappedCoordinatedAction

use of me.panavtec.coordinator.compiler.model.MappedCoordinatedAction in project Coordinator-java by PaNaVTEC.

the class CoordinatorProcessor method processAnnotations.

public Collection<EnclosingCoordinator> processAnnotations(RoundEnvironment roundEnv) {
    Collection<EnclosingCoordinator> enclosings = processCoordinators(roundEnv);
    List<MappedCompleteCoordinator> complete = processComplete(roundEnv);
    List<MappedCoordinatedAction> actions = processCoordinatedActions(roundEnv);
    for (EnclosingCoordinator enclosing : enclosings) {
        for (MappedCoordinator coordinator : enclosing.getCoordinators()) {
            assignAction(actions, enclosing, coordinator);
            assignCompleteAction(complete, enclosing, coordinator);
        }
        checkForCompleteErrors(enclosing);
    }
    return enclosings;
}
Also used : MappedCompleteCoordinator(me.panavtec.coordinator.compiler.model.MappedCompleteCoordinator) EnclosingCoordinator(me.panavtec.coordinator.compiler.model.EnclosingCoordinator) MappedCoordinator(me.panavtec.coordinator.compiler.model.MappedCoordinator) MappedCoordinatedAction(me.panavtec.coordinator.compiler.model.MappedCoordinatedAction)

Example 2 with MappedCoordinatedAction

use of me.panavtec.coordinator.compiler.model.MappedCoordinatedAction in project Coordinator-java by PaNaVTEC.

the class ActionCompleteProcessor method createMappedAction.

@Override
protected MappedCoordinatedAction createMappedAction(Element e) {
    MappedCoordinatedAction action = new MappedCoordinatedAction();
    CoordinatedAction mappedAnnotation = e.getAnnotation(CoordinatedAction.class);
    action.setActionId(mappedAnnotation.action());
    action.setCoordinatorId(mappedAnnotation.coordinatorId());
    return action;
}
Also used : MappedCoordinatedAction(me.panavtec.coordinator.compiler.model.MappedCoordinatedAction) CoordinatedAction(me.panavtec.coordinator.qualifiers.CoordinatedAction) MappedCoordinatedAction(me.panavtec.coordinator.compiler.model.MappedCoordinatedAction)

Aggregations

MappedCoordinatedAction (me.panavtec.coordinator.compiler.model.MappedCoordinatedAction)2 EnclosingCoordinator (me.panavtec.coordinator.compiler.model.EnclosingCoordinator)1 MappedCompleteCoordinator (me.panavtec.coordinator.compiler.model.MappedCompleteCoordinator)1 MappedCoordinator (me.panavtec.coordinator.compiler.model.MappedCoordinator)1 CoordinatedAction (me.panavtec.coordinator.qualifiers.CoordinatedAction)1