Package transsys :: Class TranssysInstance
[hide private]
[frames] | no frames]

Class TranssysInstance

source code

object --+
         |
        TranssysInstance

Instance Methods [hide private]
 
__init__(self, transsys_program, timestep=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
assignmentString(self) source code
float
get_factor_concentration(self, factor)
Get the concentration of a named factor.
source code
 
set_factor_concentration(self, factor, concentration)
Set the concentration of the named factor.
source code
 
clone(self)
Clones this transsys instance.
source code
 
set_uniform_random(self, rng, c_min, c_max) source code
 
perturb(self, perturb_func) source code
 
perturbed_copy(self, perturb_func) source code
 
squared_difference_sum(self, other)
Compute the sum of squared differences in factor concentrations.
source code
 
write_table_line(self, f) source code
 
time_series(self, num_timesteps, sampling_period=1, lsys_lines=None, lsys_symbol=None) source code
 
time_series_old(self, num_timesteps, sampling_period=1, lsys_lines=None, lsys_symbol=None) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Class Variables [hide private]
  magic = '# transsys expression records 1.0'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, transsys_program, timestep=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

get_factor_concentration(self, factor)

source code 

Get the concentration of a named factor.

Parameters:
  • factor (String) - the name of the factor
Returns: float
the concentration of the factor

set_factor_concentration(self, factor, concentration)

source code 

Set the concentration of the named factor.

Parameters:
  • factor (String) - the name of the factor
  • concentration (float) - the concentration of the factor

clone(self)

source code 

Clones this transsys instance. The state (factor concentrations, time step etc.) is copied, but for the transsys program, the reference is copied, not the program itself. In this respect, cloning a TranssysInstance differs from using copy.deepcopy on it.

squared_difference_sum(self, other)

source code 

Compute the sum of squared differences in factor concentrations.

The other transsys instance must be of the same program than this one.