MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
python.Strategy.InitialisationStrategy Class Reference

Parent class for the initialisation strategies. More...

+ Inheritance diagram for python.Strategy.InitialisationStrategy:

Public Member Functions

def __init__ (self, args, kwargs)
 Constructor.
 
def newPoints (self)
 Method which adds new points to the database. More...
 
def workflow (self, model)
 
def to_dict (self)
 Method used by FireWorks to deserialise the object instance. More...
 
def from_dict (cls, m_dict)
 Method used by FireWorks to deserialise all insatnces. More...
 
def __repr__ (self)
 

Detailed Description

Parent class for the initialisation strategies.

defaultdict: subclass of type(dict), overrides method missing in dict and uses a method "defaultfactory" in order to automatically return a dictionary "key" instead of "KeyError". FWSerializable: Creates a serializable object within "FireWorks"

Definition at line 83 of file Strategy.py.

Member Function Documentation

◆ from_dict()

def python.Strategy.InitialisationStrategy.from_dict (   cls,
  m_dict 
)

Method used by FireWorks to deserialise all insatnces.

Definition at line 142 of file Strategy.py.

◆ newPoints()

def python.Strategy.InitialisationStrategy.newPoints (   self)

Method which adds new points to the database.

Definition at line 93 of file Strategy.py.

◆ to_dict()

def python.Strategy.InitialisationStrategy.to_dict (   self)

Method used by FireWorks to deserialise the object instance.

Definition at line 134 of file Strategy.py.


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