FrameIT
TestFact Class Reference

just for testing purposes
More...

Inheritance diagram for TestFact:
FactWrappedCRTP< TestFact >

Public Member Functions

 TestFact ()
 
 TestFact (string backendURI)
 Bypasses initialization of new MMT Fact by using existend URI, which is not checked for existence. More...
 
override int GetHashCode ()
 canonical More...
 
override MMTFact MakeMMTDeclaration ()
 
override SOMDoc Defines ()
 
- Public Member Functions inherited from FactWrappedCRTP< TestFact >
override bool Equivalent (Fact f2)
 Compares this against f2 . More...
 
override bool Equivalent (Fact f1, Fact f2)
 Compares f1 against f2 . More...
 

Static Public Member Functions

static new IEnumerator parseFact (List< Fact > ret, MMTFact fact)
 parses the Circlefact response of the MMT-Server More...
 

Protected Member Functions

override void RecalculateTransform ()
 
override string generateLabel (FactRecorder _Facts)
 auto-generates GetLabel using generation variable(s) e.g. LabelId; if custom GetLabel is set, tries to restore original generated GetLabel without resetting _CustomLabel. If original GetLabel is already taken, a new one will be generated. More...
 
override string[] GetDependentFactIds ()
 
override bool EquivalentWrapped (TestFact f1, TestFact f2)
 Compares f1 against f2 . More...
 
override Fact _ReInitializeMe (Dictionary< string, string > old_to_new)
 
- Protected Member Functions inherited from FactWrappedCRTP< TestFact >
 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

override bool HasDependentFacts [get]
 

Detailed Description

just for testing purposes

TEST FACT use this if you need to test certain implementations of facts.

Constructor & Destructor Documentation

◆ TestFact() [1/2]

TestFact.TestFact ( )

Only being used by JsonReader to initiate empty Facts.

See also
SOMDocManager

◆ TestFact() [2/2]

TestFact.TestFact ( string  backendURI)

Bypasses initialization of new MMT Fact by using existend URI, which is not checked for existence.

Parameters
Pid1sets Pid1
Pid2sets Pid2
radiussets radius
normalsets normal
backendURIMMT URI

Member Function Documentation

◆ _ReInitializeMe()

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

◆ Defines()

override SOMDoc TestFact.Defines ( )

◆ EquivalentWrapped()

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

Compares f1 against f2 .

Parameters
f1Fact to compare to
f2Fact to compare to
Returns
true if f2 is semantical very similar to f1

◆ generateLabel()

override string TestFact.generateLabel ( FactRecorder  _Facts)
protected

auto-generates GetLabel using generation variable(s) e.g. LabelId; if custom GetLabel is set, tries to restore original generated GetLabel without resetting _CustomLabel. If original GetLabel is already taken, a new one will be generated.

Returns
auto-generated GetLabel

◆ GetDependentFactIds()

override string[] TestFact.GetDependentFactIds ( )
protected

◆ GetHashCode()

override int TestFact.GetHashCode ( )

canonical

Returns
unique-ish Hash

◆ MakeMMTDeclaration()

override MMTFact TestFact.MakeMMTDeclaration ( )

◆ parseFact()

static new IEnumerator TestFact.parseFact ( List< Fact ret,
MMTFact  fact 
)
static

parses the Circlefact response of the MMT-Server



◆ RecalculateTransform()

override void TestFact.RecalculateTransform ( )
protected

Property Documentation

◆ HasDependentFacts

override bool TestFact.HasDependentFacts
get


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