예제 #1
0
 private String getValueOfVar(final State state) {
   final String result;
   if (state != null) {
     final Variable variable = state.getValues().get(name);
     result = variable == null ? null : variable.getValue();
   } else {
     result = null;
   }
   return result;
 }
예제 #2
0
 public StateDependendElement getValue(final State state) {
   final Variable variable = state.getValues().get(name);
   final StateDependendElement element;
   if (variable != null) {
     element =
         new StateDependendElement(
             state, variable.getValue(), EStateTreeElementProperty.NONBOOLEAN);
   } else {
     element = null;
   }
   return element;
 }
예제 #3
0
  @Override
  public String toString() {
    final StringBuilder result = new StringBuilder();

    result.append("(");
    result.append(state.getId());
    result.append(")");

    if (operation != null) {
      result.append(" -");
      result.append(operation.getName());
      result.append("-> (");
      result.append(operation.getDestination());
      result.append(")");
    }

    return result.toString();
  }
예제 #4
0
 public String getStateId() {
   return state.getId();
 }