Example #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()));
  }
Example #2
0
 public MCMCModel getModel() {
   return hasSavedResults() ? null : d_wrapper.getModel();
 }
Example #3
0
 public boolean hasSavedResults() {
   return d_wrapper.isSaved();
 }