GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
model.ModelObject Class Reference
Inheritance diagram for model.ModelObject:
Collaboration diagram for model.ModelObject:

Public Member Functions

def __init__
 
def __del__
 
def GetId
 Get id. More...
 
def AddRelation
 Record new relation. More...
 
def GetRelations
 Get list of relations. More...
 
def IsEnabled
 Get True if action is enabled, otherwise False. More...
 
def Enable
 Enable/disable action. More...
 
def Update
 
def SetBlock
 Add object to the block (loop/condition) More...
 
def UnSetBlock
 Remove object from the block (loop/consition) More...
 
def GetBlock
 Get list of related ModelObject(s) which defines block (loop/condition) More...
 
def GetBlockId
 Get list of related ids which defines block. More...
 

Data Fields

 id
 
 rels
 
 isEnabled
 
 inBlock
 

Detailed Description

Definition at line 756 of file model.py.

Constructor & Destructor Documentation

def model.ModelObject.__init__ (   self,
  id = -1 
)

Definition at line 757 of file model.py.

def model.ModelObject.__del__ (   self)

Definition at line 764 of file model.py.

Member Function Documentation

def model.ModelObject.AddRelation (   self,
  rel 
)

Record new relation.

Definition at line 771 of file model.py.

def model.ModelObject.GetBlock (   self)

Get list of related ModelObject(s) which defines block (loop/condition)

Returns
list of ModelObjects

Definition at line 825 of file model.py.

References model.ModelObject.inBlock.

def model.ModelObject.GetBlockId (   self)

Get list of related ids which defines block.

Returns
list of ids

Definition at line 833 of file model.py.

References model.ModelObject.inBlock.

def model.ModelObject.GetId (   self)

Get id.

Definition at line 767 of file model.py.

Referenced by tools.NvizToolWindow.UpdateScrolling().

def model.ModelObject.GetRelations (   self,
  fdir = None 
)

Get list of relations.

Parameters
fdirTrue for 'from'

Definition at line 776 of file model.py.

References model.ModelObject.rels.

Referenced by model.ModelAction.FindData(), model.ModelData.GetLog(), model.ModelData.GetName(), model.ModelData.SetPropDialog(), and model.ModelData.SetValue().

def model.ModelObject.IsEnabled (   self)

Get True if action is enabled, otherwise False.

Definition at line 795 of file model.py.

References model.ModelObject.isEnabled.

def model.ModelObject.SetBlock (   self,
  item 
)

Add object to the block (loop/condition)

Parameters
itemreference to ModelLoop or ModelCondition which defines loops/condition

Definition at line 807 of file model.py.

def model.ModelObject.UnSetBlock (   self,
  item 
)

Remove object from the block (loop/consition)

Parameters
itemreference to ModelLoop or ModelCondition which defines loops/codition

Definition at line 816 of file model.py.

References model.ModelObject.inBlock.

Field Documentation

model.ModelObject.inBlock
model.ModelObject.isEnabled
model.ModelObject.rels

Definition at line 759 of file model.py.

Referenced by model.ModelObject.GetRelations().


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