FrameIT
|
Fact representation of Unity; mostly mirrors Facts of MMT. More...
Public Member Functions | |
string | GetLabel (FactRecorder name_space) |
bool | SetLabel (string value, FactRecorder name_space) |
Fact | ReInitializeMe (Dictionary< string, string > old_to_new, FactRecorder organizer) |
Copies fact by initiating new MMT Fact. More... | |
bool | rename (string newLabel, FactRecorder name_space) |
Assignes a custom GetLabel, if newLabel is not yet taken; or clears custom GetLabel. More... | |
abstract MMTFact | MakeMMTDeclaration () |
abstract SOMDoc | Defines () |
abstract bool | Equivalent (Fact f2) |
Compares this against f2 . More... | |
abstract bool | Equivalent (Fact f1, Fact f2) |
Compares f1 against f2 . More... | |
virtual new int | GetHashCode () |
canonical More... | |
virtual SOMDoc | GetMMTType () |
void | freeAutoLabel (FactRecorder name_space) |
Tells a FactRecorder that this no longer uses auto-generated GetLabel, but remembers current generation variable(s). More... | |
void | SendToMMT () |
Static Public Member Functions | |
static IEnumerator | parseFact (List< Fact > ret, MMTFact fact) |
Parses MMTFact to actual Fact More... | |
static SOMDoc | SendToMMT (MMTFact mmtDecl) |
static void | MakeFact (List< Fact > ret, object payload, SOMDoc ServerDefinition, bool BypassServer, SOMDoc BypassURI=null) |
Tries to parse payload into Fact(s) More... | |
static List< Fact > | MMTFactory (MMTFact ingredient) |
Compiles/Executes ingredient and parses result into @Fact s More... | |
Public Attributes | |
FactWrapper | WorldRepresentation |
Reference to GameObject that represents this Fact in the GameWorld. More... | |
Static Public Attributes | |
static readonly Type[] | Types = TypeExtensions<Fact>.UAssemblyInheritenceTypes |
Collection of Type s of all available Facts to choose from. More... | |
Protected Member Functions | |
virtual object | GetCompiledValue () |
object | CompileValue (SOMDoc compile_me) |
abstract string[] | GetDependentFactIds () |
Fact () | |
Only being used by JsonReader to initiate empty Facts.
| |
abstract Fact | _ReInitializeMe (Dictionary< string, string > old_to_new) |
abstract void | RecalculateTransform () |
virtual string | generateLabel (FactRecorder name_space) |
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... | |
Protected Attributes | |
string | s_type |
string | _CustomLabel = null |
Stores custom GetLabel if set. More... | |
Package Attributes | |
string | _LastLabel = "NaN" |
Properties | |
Expression? | CompileBase [getprotected set] |
object | CompiledValue [getprotected set] |
virtual bool | HasDependentFacts [get] |
| |
string[] | DependentFactIds [get] |
string??? | Id [get] |
Unique Id. e.g.: MMT URI More... | |
SOMDoc | ServerDefinition [getprotected set] |
AST which the Server understands. e.g.: OMS(MMT URI) More... | |
MMTFact | ScalaFact [getprotected set] |
bool | HasServerTwin [get] |
bool | hasCustomLabel [get] |
int | LabelId [getset] |
Counter to organize auto generated GetLabel. Set to negative, if custom Label is assigned. More... | |
Vector3 | Position [getprotected set] |
Quaternion | Rotation [getprotected set] |
Vector3 | LocalScale [getprotected set] |
Private Member Functions | |
~Fact () | |
Frees ressources e.g. GetLabel and will eventually delete Fact Server-Side in far-near future when feature is supported. More... | |
Private Attributes | |
Expression | _CompileBase |
object | _CompiledValue |
string[] | _DependentFactIds |
SOMDoc | _ServerDefinition = null |
MMTFact | _ScalaFact = null |
bool | ForceRecalculateTransform = true |
Vector3 | _Position = Vector3.zero |
Quaternion | _Rotation = Quaternion.identity |
Vector3 | _LocalScale = Vector3.one |
bool | SendedToMMT = false |
Static Private Attributes | |
static readonly List< Type > | ServerBlacklist |
static uint | bypasscc = 0 |
Used by MakeFact(List<Fact>, object, SOMDoc, bool, SOMDoc) to create unique pseudo-URIs / Ids. More... | |
Fact representation of Unity; mostly mirrors Facts of MMT.
|
protected |
Only being used by JsonReader to initiate empty Facts.
|
private |
Frees ressources e.g. GetLabel and will eventually delete Fact Server-Side in far-near future when feature is supported.
|
protectedpure virtual |
|
protected |
|
pure virtual |
Compares f1 against f2 .
true
if f2 is semantical very similar to f1 Implemented in FactWrappedCRTP< T >.
|
pure virtual |
Compares this against f2 .
f2 | Fact to compare to |
true
if f2 is semantical very similar to thisImplemented in FactWrappedCRTP< T >.
void Fact.freeAutoLabel | ( | FactRecorder | name_space | ) |
Tells a FactRecorder that this no longer uses auto-generated GetLabel, but remembers current generation variable(s).
|
protectedvirtual |
|
protectedvirtual |
|
protectedpure virtual |
|
virtual |
canonical
string Fact.GetLabel | ( | FactRecorder | name_space | ) |
get
initiates and subsequently updates a human readable name. set
calls rename(string, FactRecorder)
|
virtual |
|
static |
Tries to parse payload into Fact(s)
ret | to add results to |
payload | to be parsed |
ServerDefinition | what the Server could use. Only relevant for certain types of payload . |
BypassServer | iff true avoids Server-side initialization |
BypassURI | iff BypassServer ==true used as Server reference; iff set null a unique pseudo reference will be generated |
NotImplementedException | iff payload is of unhandled type |
|
pure virtual |
Compiles/Executes ingredient and parses result into @Fact s
ingredient | MMT package to be interpreted |
|
protectedpure virtual |
Fact Fact.ReInitializeMe | ( | Dictionary< string, string > | old_to_new, |
FactRecorder | organizer | ||
) |
Copies fact by initiating new MMT Fact.
fact | Fact to be copied |
old_to_new | Dictionary mapping fact .getDependentFactIds to corresponding Fact.Id in organizer |
organizer | for LabelingGetLabel(FactRecorder) |
bool Fact.rename | ( | string | newLabel, |
FactRecorder | name_space | ||
) |
void Fact.SendToMMT | ( | ) |
Asynchron version has proofen inefficent, since Fact.Id is usually called in close proximity.
bool Fact.SetLabel | ( | string | value, |
FactRecorder | name_space | ||
) |
|
private |
|
private |
|
protected |
Stores custom GetLabel if set.
|
private |
|
package |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
Used by MakeFact(List<Fact>, object, SOMDoc, bool, SOMDoc) to create unique pseudo-URIs / Ids.
|
private |
|
protected |
[ClassName] for JSON de-/serialization. Automatically set in Fact() for NON-Generiy-Types! Also add JsonSubtypes.KnownSubType decorator for deserialization to Fact!
|
private |
|
staticprivate |
|
static |
Collection of Type
s of all available Facts to choose from.
FactWrapper Fact.WorldRepresentation |
Reference to GameObject
that represents this Fact in the GameWorld.
|
getprotected set |
|
getprotected set |
|
get |
|
get |
|
get |
|
get |
Unique Id. e.g.: MMT URI
|
getset |
Counter to organize auto generated GetLabel. Set to negative, if custom Label is assigned.
|
getprotected set |
|
getprotected set |
|
getprotected set |
|
getprotected set |
|
getprotected set |
AST which the Server understands. e.g.: OMS(MMT URI)