EcohydroLib  1.29
Public Member Functions | Public Attributes | List of all members
ecohydrolib.command.base.GrassCommand Class Reference
Inheritance diagram for ecohydrolib.command.base.GrassCommand:
ecohydrolib.command.base.Command ecohydrolib.command.base.Command

Public Member Functions

def __init__
 Construct a EcohydroLib 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 EcohydroLib 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 ecohydrolib.command.base.Command
def __init__
 Construct a EcohydroLib 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 EcohydroLib 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 ecohydrolib.command.base.Command
 context
 
 outfp
 
 studyArea
 

Constructor & Destructor Documentation

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

Construct a EcohydroLib 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 ecohydrolib.command.base.GrassCommand.__init__ (   self,
  projectDir,
  configFile = None,
  outfp = sys.stdout 
)

Construct a EcohydroLib 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 ecohydrolib.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 ecohydrolib.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 ecohydrolib.command.base.GrassCommand.run (   self,
  args,
  kwargs 
)

Run the command.

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

Run the command.

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

Member Data Documentation

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

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