コード例 #1
0
ファイル: StateMachineReader.java プロジェクト: UMLCE/UMLCE
  public static void printStateMachine(ArrayList<SM> stateMachineDetails) {
    for (SM details : stateMachineDetails) {
      System.out.println("State Name : " + details.getName());
      ArrayList<TransitionDetails> trDetails = details.getTransitions();
      for (TransitionDetails trDetail : trDetails) {

        System.out.println("Transition Name : " + trDetail.getName());
        System.out.println("Dest : " + trDetail.getDest());
        System.out.println("Effect name : " + trDetail.getEffect().getName());
        System.out.println("Effect body : " + trDetail.getEffect().getBody());
        System.out.println("Guard name : " + trDetail.getGuard().getName());
        System.out.println("Guard body : " + trDetail.getGuard().getBody());

        System.out.println("Trigger Name : " + trDetail.getTrigger().getOpName());
      }
    }
  }