FrameIT
FunctionCallFact Class Reference

Binds a domain mapper (FunctionFact) opperating on time t in seconds to a FunctionFact. Uses FunctionFact Function_args to map from a linear scale to the domain of FunctionFact Function to execute it. More...

Inheritance diagram for FunctionCallFact:
FactWrappedCRTP< FunctionCallFact >

Public Member Functions

 FunctionCallFact (string func_id, string arg_func_id,(float t_0, float t_n) Domain)
 
 FunctionCallFact (FunctionFact Function, FunctionFact Function_args,(float t_0, float t_n) Domain)
 
object[] Call (float t)
 Mapps t with Function_args to domain of Function and calls it. More...
 
override MMTFact MakeMMTDeclaration ()
 
override SOMDoc Defines ()
 
- Public Member Functions inherited from FactWrappedCRTP< FunctionCallFact >
override bool Equivalent (Fact f2)
 Compares this against f2 . More...
 
override bool Equivalent (Fact f1, Fact f2)
 Compares f1 against f2 . More...
 

Public Attributes

float t_0
 Linear domain on R this Fact is valid on; Intervall is defined as [t_0, t_n] More...
 
float float t_n Domain
 
FunctionFact Function
 The function to be called with Call(float) More...
 
FunctionFact Function_args
 Mapps from linear Domain to arguments from Function. (may be multidimensional) More...
 

Protected Member Functions

override object GetCompiledValue ()
 
override string[] GetDependentFactIds ()
 
override bool EquivalentWrapped (FunctionCallFact f1, FunctionCallFact f2)
 
override void RecalculateTransform ()
 
override Fact _ReInitializeMe (Dictionary< string, string > old_to_new)
 
- Protected Member Functions inherited from FactWrappedCRTP< FunctionCallFact >
 FactWrappedCRTP ()
 
abstract bool EquivalentWrapped (T f1, T f2)
 CRTP step of Equivalent(Fact) and Equivalent(Fact, Fact) More...
 
bool DependentFactsEquivalent (T f1, T f2)
 

Properties

string??? func_id [getprivate set]
 Fact.Id of Function More...
 
string??? arg_func_id [getprivate set]
 Fact.Id of Function_args More...
 
override bool HasDependentFacts [get]
 

Private Attributes

string _func_id
 
string _arg_func_id
 

Detailed Description

Binds a domain mapper (FunctionFact) opperating on time t in seconds to a FunctionFact. Uses FunctionFact Function_args to map from a linear scale to the domain of FunctionFact Function to execute it.

Constructor & Destructor Documentation

◆ FunctionCallFact() [1/2]

FunctionCallFact.FunctionCallFact ( string  func_id,
string  arg_func_id,
(float t_0, float t_n)  Domain 
)

◆ FunctionCallFact() [2/2]

FunctionCallFact.FunctionCallFact ( FunctionFact  Function,
FunctionFact  Function_args,
(float t_0, float t_n)  Domain 
)

Member Function Documentation

◆ _ReInitializeMe()

override Fact FunctionCallFact._ReInitializeMe ( Dictionary< string, string >  old_to_new)
protected

◆ Call()

object[] FunctionCallFact.Call ( float  t)

Mapps t with Function_args to domain of Function and calls it.

Parameters
tto be used as argument for Function_args. Semantical use is time in seconds.
Returns
Function(Function_args(t )) iff t is within Domain

◆ Defines()

override SOMDoc FunctionCallFact.Defines ( )

◆ EquivalentWrapped()

override bool FunctionCallFact.EquivalentWrapped ( FunctionCallFact  f1,
FunctionCallFact  f2 
)
protected

◆ GetCompiledValue()

override object FunctionCallFact.GetCompiledValue ( )
protected

◆ GetDependentFactIds()

override string[] FunctionCallFact.GetDependentFactIds ( )
protected

◆ MakeMMTDeclaration()

override MMTFact FunctionCallFact.MakeMMTDeclaration ( )

◆ RecalculateTransform()

override void FunctionCallFact.RecalculateTransform ( )
protected

Member Data Documentation

◆ _arg_func_id

string FunctionCallFact._arg_func_id
private

◆ _func_id

string FunctionCallFact._func_id
private

◆ Domain

float float t_n FunctionCallFact.Domain

◆ Function

FunctionFact FunctionCallFact.Function

The function to be called with Call(float)

◆ Function_args

FunctionFact FunctionCallFact.Function_args

Mapps from linear Domain to arguments from Function. (may be multidimensional)

◆ t_0

float FunctionCallFact.t_0

Linear domain on R this Fact is valid on; Intervall is defined as [t_0, t_n]

Property Documentation

◆ arg_func_id

string??? FunctionCallFact.arg_func_id
getprivate set

◆ func_id

string??? FunctionCallFact.func_id
getprivate set

◆ HasDependentFacts

override bool FunctionCallFact.HasDependentFacts
get

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