Пример #1
0
  public MCMCPresentation(
      final MCMCModelWrapper wrapper, final OutcomeMeasure om, final String name) {
    d_wrapper = wrapper;
    d_om = om;
    d_taskProgressModel =
        !wrapper.isSaved()
            ? new TaskProgressModel(wrapper.getModel().getActivityTask())
            : new TaskProgressModel(
                new NullTask() {
                  public boolean isFinished() {
                    return true;
                  }

                  public boolean isStarted() {
                    return true;
                  }
                });
    d_name = name;
    d_modelConstructionFinished =
        wrapper.isSaved()
            ? new UnmodifiableHolder<Boolean>(true)
            : new ValueModelWrapper<Boolean>(
                new TaskTerminatedModel(
                    wrapper.getModel().getActivityTask().getModel().getStartState()));
  }
Пример #2
0
 public boolean hasSavedResults() {
   return d_wrapper.isSaved();
 }