RHESSysWorkflows  1.33
Public Member Functions | Public Attributes | List of all members
rhessysworkflows.command.base.Command Class Reference
Inheritance diagram for rhessysworkflows.command.base.Command:
rhessysworkflows.command.base.GrassCommand rhessysworkflows.command.base.GrassCommand rhessysworkflows.command.flowtable.FlowtableMultiple rhessysworkflows.command.flowtable.FlowtableMultiple rhessysworkflows.command.modelrun.LAIReadMultiple rhessysworkflows.command.modelrun.LAIReadMultiple rhessysworkflows.command.worldfile.WorldfileMultiple rhessysworkflows.command.worldfile.WorldfileMultiple rhessysworkflows.command.flowtable.FlowtableMultiple rhessysworkflows.command.flowtable.FlowtableMultiple rhessysworkflows.command.modelrun.LAIReadMultiple rhessysworkflows.command.modelrun.LAIReadMultiple rhessysworkflows.command.worldfile.WorldfileMultiple rhessysworkflows.command.worldfile.WorldfileMultiple

Public Member Functions

def __init__
 Construct a RHESSysWorkflows abstract command. More...
 
def checkMetadata (self, args, kwargs)
 Check to make sure the project directory has the necessary metadata to run this command. More...
 
def run (self, args, kwargs)
 Run the command. More...
 
def __init__
 Construct a RHESSysWorkflows abstract command. More...
 
def checkMetadata (self, args, kwargs)
 Check to make sure the project directory has the necessary metadata to run this command. More...
 
def run (self, args, kwargs)
 Run the command. More...
 

Public Attributes

 context
 
 outfp
 
 studyArea
 
 metadata
 

Constructor & Destructor Documentation

def rhessysworkflows.command.base.Command.__init__ (   self,
  projectDir,
  configFile = None,
  outfp = sys.stdout 
)

Construct a RHESSysWorkflows abstract command.

Concrete commands must call this super class method in their constructor.

Arguments: projectDir – string The path to the project directory configFile – string The path to an EcohydroLib configuration file outfp – file-like object Where output should be written to

def rhessysworkflows.command.base.Command.__init__ (   self,
  projectDir,
  configFile = None,
  outfp = sys.stdout 
)

Construct a RHESSysWorkflows abstract command.

Concrete commands must call this super class method in their constructor.

Arguments: projectDir – string The path to the project directory configFile – string The path to an EcohydroLib configuration file outfp – file-like object Where output should be written to

Member Function Documentation

def rhessysworkflows.command.base.Command.checkMetadata (   self,
  args,
  kwargs 
)

Check to make sure the project directory has the necessary metadata to run this command.

Note
Concrete commands must call this super class method in their own implementation of checkMetadata(), and must call their implementation near the beginning of their run method.
def rhessysworkflows.command.base.Command.checkMetadata (   self,
  args,
  kwargs 
)

Check to make sure the project directory has the necessary metadata to run this command.

Note
Concrete commands must call this super class method in their own implementation of checkMetadata(), and must call their implementation near the beginning of their run method.
def rhessysworkflows.command.base.Command.run (   self,
  args,
  kwargs 
)

Run the command.

Note
Concrete classes must call checkMetadata() near the beginning of their run methods.
def rhessysworkflows.command.base.Command.run (   self,
  args,
  kwargs 
)

Run the command.

Note
Concrete classes must call checkMetadata() near the beginning of their run methods.

Member Data Documentation

rhessysworkflows.command.base.Command.context
rhessysworkflows.command.base.Command.metadata
rhessysworkflows.command.base.Command.outfp
rhessysworkflows.command.base.Command.studyArea

The documentation for this class was generated from the following file: