RHESSysWorkflows  1.33
Public Member Functions | Public Attributes | List of all members
rhessysworkflows.command.base.GrassCommand Class Reference
Inheritance diagram for rhessysworkflows.command.base.GrassCommand:
rhessysworkflows.command.base.Command rhessysworkflows.command.base.Command 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 that runs GRASS commands. More...
 
def checkMetadata (self, args, kwargs)
 Check to make sure the project directory has the necessary metadata to run this command. More...
 
def setupGrassEnv (self)
 
def run (self, args, kwargs)
 Run the command. More...
 
def __init__
 Construct a RHESSysWorkflows abstract command that runs GRASS commands. More...
 
def checkMetadata (self, args, kwargs)
 Check to make sure the project directory has the necessary metadata to run this command. More...
 
def setupGrassEnv (self)
 
def run (self, args, kwargs)
 Run the command. More...
 
- Public Member Functions inherited from rhessysworkflows.command.base.Command
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

 grassMetadata
 
 modulePath
 
 grassDbase
 
 grassConfig
 
 grassLib
 
- Public Attributes inherited from rhessysworkflows.command.base.Command
 context
 
 outfp
 
 studyArea
 
 metadata
 

Constructor & Destructor Documentation

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

Construct a RHESSysWorkflows abstract command that runs GRASS commands.

Concrete GRASS 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.GrassCommand.__init__ (   self,
  projectDir,
  configFile = None,
  outfp = sys.stdout 
)

Construct a RHESSysWorkflows abstract command that runs GRASS commands.

Concrete GRASS 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.GrassCommand.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.GrassCommand.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.GrassCommand.run (   self,
  args,
  kwargs 
)

Run the command.

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

Run the command.

Note
Concrete classes must call checkMetadata() near the beginning of their run methods.
def rhessysworkflows.command.base.GrassCommand.setupGrassEnv (   self)
def rhessysworkflows.command.base.GrassCommand.setupGrassEnv (   self)

Member Data Documentation

rhessysworkflows.command.base.GrassCommand.grassConfig
rhessysworkflows.command.base.GrassCommand.grassDbase
rhessysworkflows.command.base.GrassCommand.grassLib
rhessysworkflows.command.base.GrassCommand.grassMetadata
rhessysworkflows.command.base.GrassCommand.modulePath

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