Class SimulationTrialRun

All Implemented Interfaces:
TrialRun, hec.event.ModifiableListener, AsciiSerializable, FieldAccessor, LockableObject, hec.map.MapObjectInterface, MessagePrinter, ModelConstants, TsRecordContainer, Serializable, Cloneable, Comparable, EventListener, Observer, mil.army.usace.hec.rmi.csinterface.CallBackInterface, rma.lang.Modifiable
Direct Known Subclasses:
RssSimTrialRun

public class SimulationTrialRun extends SimulationRun implements TrialRun
See Also:
  • Field Details

    • FILE_EXT

      public static String FILE_EXT
      Description of the Field
  • Constructor Details

    • SimulationTrialRun

      public SimulationTrialRun()
      Constructor for the TrialForecastRun object
    • SimulationTrialRun

      public SimulationTrialRun(boolean isBaseTrial)
      Constructor for the TrialForecastRun object
      Parameters:
      isBaseTrial - Description of Parameter
  • Method Details

    • setSimulationRunClassName

      public void setSimulationRunClassName(String name)
    • setIsBaseTrial

      public void setIsBaseTrial(boolean b)
      Sets the IsBaseTrial attribute of the TrialForecastRun object
      Parameters:
      b - The new IsBaseTrial value
    • setRunParent

      public void setRunParent(SimulationRun run)
      Sets the RunParent attribute of the SimulationTrialRun object
      Specified by:
      setRunParent in interface TrialRun
      Parameters:
      run - The new RunParent value
    • getRunParent

      public SimulationRun getRunParent()
      Gets the ForecastRunParent attribute of the TrialForecastRun object
      Specified by:
      getRunParent in interface TrialRun
      Returns:
      The ForecastRunParent value
    • getModelAltWorkspaceName

      public String getModelAltWorkspaceName()
      Description copied from class: SimulationRun
      Gets the ModelAltWorkspaceName attribute of the SimulationRun object. This represents the model directory that will be used to store the simulation run.
      Specified by:
      getModelAltWorkspaceName in class SimulationRun
      Returns:
      The ModelAltWorkspaceName value
    • getTrialRunClassName

      public String getTrialRunClassName()
      Description copied from class: SimulationRun
      Gets the TrialRunClassName attribute of the SimulationRun object
      Specified by:
      getTrialRunClassName in class SimulationRun
      Returns:
      returns the class name used to construct or identify the class to be used for trial runs. Allows different simulations to specify different trial classes. The class must subclass the object hec.clientapp.model.SimulationRun
      See Also:
    • getIdentifier

      public Identifier getIdentifier()
      Gets the Identifier attribute of the SimulationTrialRun object
      Specified by:
      getIdentifier in interface TrialRun
      Overrides:
      getIdentifier in class Manager
      Returns:
      The Identifier value
    • setActiveTrial

      public void setActiveTrial(boolean active)
      Sets the ActiveTrial attribute of the TrialForecastRun object
      Parameters:
      active - The new ActiveTrial value
    • setCurrentTrial

      public void setCurrentTrial(boolean current)
      Sets the CurrentTrial attribute of the TrialForecastRun object
      Parameters:
      current - The new CurrentTrial value
    • setModified

      public void setModified(boolean b)
      Sets the Modified attribute of the TrialForecastRun object
      Specified by:
      setModified in interface rma.lang.Modifiable
      Overrides:
      setModified in class SimulationRun
      Parameters:
      b - The new Modified value
    • isBaseTrial

      public boolean isBaseTrial()
      Gets the BaseTrial attribute of the TrialForecastRun object
      Returns:
      The BaseTrial value
    • isActiveTrial

      public boolean isActiveTrial()
      Gets the ActiveTrial attribute of the TrialForecastRun object
      Returns:
      The ActiveTrial value
    • isCurrentTrial

      public boolean isCurrentTrial()
      Gets the CurrentTrial attribute of the TrialForecastRun object
      Returns:
      The CurrentTrial value
    • toString

      public String toString()
      Description of the Method
      Overrides:
      toString in class SimulationRun
      Returns:
      Description of the Returned Value
    • getKey

      public String getKey()
      Overrides:
      getKey in class SimulationRun
    • getModel

      public String getModel(String programName)
      Overrides:
      getModel in class SimulationRun
    • getFileExtension

      public String getFileExtension()
      Overrides:
      getFileExtension in class SimulationRun
    • getTrialKey

      public String getTrialKey()
      return the name with trials ie. Q1B2R3----
      Specified by:
      getTrialKey in interface TrialRun
    • setTrialKey

      public void setTrialKey(String trialKey)
    • setTrialPosition

      public void setTrialPosition(int pos)
    • getTrialPosition

      public int getTrialPosition()
      Specified by:
      getTrialPosition in interface TrialRun
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Sets the FieldObject attribute of the TrialForecastRun object
      Specified by:
      setFieldObject in interface FieldAccessor
      Overrides:
      setFieldObject in class SimulationRun
      Parameters:
      fld - The new FieldObject value
      fobj - The new FieldObject value
      Returns:
      Description of the Returned Value
    • getFieldObject

      public Object getFieldObject(Field fld)
      Gets the FieldObject attribute of the TrialForecastRun object
      Specified by:
      getFieldObject in interface FieldAccessor
      Overrides:
      getFieldObject in class SimulationRun
      Parameters:
      fld - Description of Parameter
      Returns:
      The FieldObject value
    • setAccepted

      public void setAccepted(boolean accepted)
      set this trial as having been accepted.
      Parameters:
      b -
    • isAccepted

      public boolean isAccepted()
      Returns:
      whether this trial has been accepted.