C# Class KnowledgeBase.KB

Inheritance: IQueryable, ICustomSerialization
Show file Open project: GAIPS-INESC-ID/FAtiMA-Toolkit Class Usage Examples

Public Methods

Method Description
AskPossibleProperties ( Name property, Name perspective, IEnumerable constraints ) : IEnumerable
AskProperty ( Name property ) : Name
AskProperty ( Name property, Name perspective ) : Name
AssertPerspective ( Name perspective ) : Name
BeliefExists ( Name name ) : bool
GetAllBeliefs ( ) : IEnumerable
GetDynamicProperties ( ) : IEnumerable
GetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
KB ( Name perspective ) : SerializationUtilities.Attributes
RegistDynamicProperty ( Name propertyName, DynamicPropertyCalculator_T1 surrogate, string description = null ) : void
RegistDynamicProperty ( Name propertyName, DynamicPropertyCalculator_T2 surrogate, string description = null ) : void
RegistDynamicProperty ( Name propertyName, DynamicPropertyCalculator_T3 surrogate, string description = null ) : void
RegistDynamicProperty ( Name propertyName, DynamicPropertyCalculator_T4 surrogate, string description = null ) : void
SetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
SetPerspective ( Name newPerspective ) : void
Tell ( Name property, Name value ) : void
Tell ( Name property, Name value, Name perspective ) : void
UnregistDynamicProperty ( Name propertyTemplate ) : void

Private Methods

Method Description
AskDynamicProperties ( Name property, Name perspective, IEnumerable constraints ) : IEnumerable
AssertPerspective ( Name perspective, string argumentName ) : List

AssetToMList ( List ToMList, Name current, string argName ) : void
CountPropertyCalculator_new ( IQueryContext context, Name x ) : IEnumerable
ExtractPropertyFromToM ( Name property, List ToMList, string argumentName ) : Name
GetAllPerspectives ( ) : IEnumerable
KB ( ) : SerializationUtilities.Attributes
Key2ToMList ( Name key ) : IEnumerable
Perspective2String ( Name perception ) : string
RegistNativeDynamicProperties ( IDynamicPropertiesRegister kb ) : void
RemovePropertyPerspective ( Name property, List ToMList ) : Name
SimplifyProperty ( Name property, List ToMList ) : Name
String2Perspective ( string str ) : Name
ToMList2Key ( IEnumerable ToMList ) : Name
internal_AskPossibleProperties ( Name property, List ToMList, IEnumerable constraints ) : IEnumerable
internal_RegistDynamicProperty ( Name propertyName, string description, MethodInfo surogate, DynamicPropertyCalculator converted ) : void

Method Details

AskPossibleProperties() public method

public AskPossibleProperties ( Name property, Name perspective, IEnumerable constraints ) : IEnumerable
property Name
perspective Name
constraints IEnumerable
return IEnumerable

AskProperty() public method

public AskProperty ( Name property ) : Name
property Name
return Name

AskProperty() public method

public AskProperty ( Name property, Name perspective ) : Name
property Name
perspective Name
return Name

AssertPerspective() public method

public AssertPerspective ( Name perspective ) : Name
perspective Name
return Name

BeliefExists() public method

public BeliefExists ( Name name ) : bool
name Name
return bool

GetAllBeliefs() public method

public GetAllBeliefs ( ) : IEnumerable
return IEnumerable

GetDynamicProperties() public method

public GetDynamicProperties ( ) : IEnumerable
return IEnumerable

GetObjectData() public method

public GetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
dataHolder ISerializationData
context ISerializationContext
return void

KB() public method

public KB ( Name perspective ) : SerializationUtilities.Attributes
perspective Name
return SerializationUtilities.Attributes

RegistDynamicProperty() public method

public RegistDynamicProperty ( Name propertyName, DynamicPropertyCalculator_T1 surrogate, string description = null ) : void
propertyName Name
surrogate DynamicPropertyCalculator_T1
description string
return void

RegistDynamicProperty() public method

public RegistDynamicProperty ( Name propertyName, DynamicPropertyCalculator_T2 surrogate, string description = null ) : void
propertyName Name
surrogate DynamicPropertyCalculator_T2
description string
return void

RegistDynamicProperty() public method

public RegistDynamicProperty ( Name propertyName, DynamicPropertyCalculator_T3 surrogate, string description = null ) : void
propertyName Name
surrogate DynamicPropertyCalculator_T3
description string
return void

RegistDynamicProperty() public method

public RegistDynamicProperty ( Name propertyName, DynamicPropertyCalculator_T4 surrogate, string description = null ) : void
propertyName Name
surrogate DynamicPropertyCalculator_T4
description string
return void

SetObjectData() public method

public SetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
dataHolder ISerializationData
context ISerializationContext
return void

SetPerspective() public method

public SetPerspective ( Name newPerspective ) : void
newPerspective Name
return void

Tell() public method

public Tell ( Name property, Name value ) : void
property Name
value Name
return void

Tell() public method

public Tell ( Name property, Name value, Name perspective ) : void
property Name
value Name
perspective Name
return void

UnregistDynamicProperty() public method

public UnregistDynamicProperty ( Name propertyTemplate ) : void
propertyTemplate Name
return void