EcohydroLib  1.29
Public Member Functions | Static Public Attributes | List of all members
ecohydrolib.metadata.MetadataEntity Class Reference
Inheritance diagram for ecohydrolib.metadata.MetadataEntity:
ecohydrolib.metadata.AssetProvenance ecohydrolib.metadata.AssetProvenance ecohydrolib.metadata.ClimatePointStation ecohydrolib.metadata.ClimatePointStation ecohydrolib.metadata.ModelRun ecohydrolib.metadata.ModelRun

Public Member Functions

def writeToMetadata (self, context)
 Write structured entity to metadata store for a given project directory. More...
 
def readFromMetadata (cls, context, fqId)
 Read structured entity from metadata store for a given project directory. More...
 
def writeToMetadata (self, context)
 Write structured entity to metadata store for a given project directory. More...
 
def readFromMetadata (cls, context, fqId)
 Read structured entity from metadata store for a given project directory. More...
 

Static Public Attributes

string FMT_DATE = '%Y-%m-%d %H:%M:%S'
 

Member Function Documentation

def ecohydrolib.metadata.MetadataEntity.readFromMetadata (   cls,
  context,
  fqId 
)

Read structured entity from metadata store for a given project directory.

Parameters
contextContext object containing projectDir, the path of the project whose metadata store is to be read from
fqIdString representing the fully qualified ID of the entity

Implementations should return an instance of themselves containing data read from the metadata store

KeyError if entity is not in metadata

def ecohydrolib.metadata.MetadataEntity.readFromMetadata (   cls,
  context,
  fqId 
)

Read structured entity from metadata store for a given project directory.

Parameters
contextContext object containing projectDir, the path of the project whose metadata store is to be read from
fqIdString representing the fully qualified ID of the entity

Implementations should return an instance of themselves containing data read from the metadata store

KeyError if entity is not in metadata

def ecohydrolib.metadata.MetadataEntity.writeToMetadata (   self,
  context 
)

Write structured entity to metadata store for a given project directory.

Parameters
contextContext object containing projectDir, the path of the project whose metadata store is to be written to
def ecohydrolib.metadata.MetadataEntity.writeToMetadata (   self,
  context 
)

Write structured entity to metadata store for a given project directory.

Parameters
contextContext object containing projectDir, the path of the project whose metadata store is to be written to

Member Data Documentation

string ecohydrolib.metadata.MetadataEntity.FMT_DATE = '%Y-%m-%d %H:%M:%S'
static

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