The ComputeOptions object is part of hec2.plugin.model which means it is shared code impacting both CWMS and WAT, it stores some basic information about a compute. This information includes:

  • DSS Filename for both input and output of DSS data
  • F-Part for DSS pathnames
  • Run time window
  • Simulation name
  • The base compute directory. The plug-in is expected to compute in a subdirectory under this directory.
  • Compute Progress Listeners, these listeners allow the plug-in to return compute status back to the WAT.
  • Flag to force a compute
  • Dynamic Linking


ComputeOptions

package hec2.plugin.model;

public class ComputeOptions implements Serializable, Cloneable
{
	/**
	* get the compute's DSS file. This file should be used to hold each
	* model's DSS output. Its also where models get their input when they
	* expect DSS input from an upstream model.
	* @return the compute's DSS file
	*/
	@Scriptable
	public String getDssFilename();

	/**
	* the DSS F-Part that this model should use in the compute
	* @return the DSS F-Part.
	*/
	@Scriptable
	public String getFpart();

	/**
	* get the Simulation's name
	* @return the Simulation's name
	*/
	@Scriptable
	public String getSimulationName();

	/**
	* get the directory that the simulation should compute in
	* @return
	*/
	@Scriptable
	public String getRunDirectory();

	@Scriptable
	public List<DynamicLinkage> getDynamicLinkages();

	/**
	* get the RunTimeWIndow for the Compute
	* @return the compute's RunTimeWindow
	*/
	@Scriptable
	public RunTimeWindow getRunTimeWindow();

	/**
	* should the compute be run even if everything seems to be up to date
	* @return true if the compute should always be run
	*/
	@Scriptable
	public boolean shouldForceCompute();
}
JAVA







Additional information is contained in the ModelAlternative's hec2.wat.model.ComputeOptions object.


  • Dynamic Linkages
  • FRA specific options