C# Класс KnowledgeBase.KB

Наследование: IQueryable, ICustomSerialization
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AskPossibleProperties() публичный Метод

public AskPossibleProperties ( Name property, Name perspective, IEnumerable constraints ) : IEnumerable
property Name
perspective Name
constraints IEnumerable
Результат IEnumerable

AskProperty() публичный Метод

public AskProperty ( Name property ) : Name
property Name
Результат Name

AskProperty() публичный Метод

public AskProperty ( Name property, Name perspective ) : Name
property Name
perspective Name
Результат Name

AssertPerspective() публичный Метод

public AssertPerspective ( Name perspective ) : Name
perspective Name
Результат Name

BeliefExists() публичный Метод

public BeliefExists ( Name name ) : bool
name Name
Результат bool

GetAllBeliefs() публичный Метод

public GetAllBeliefs ( ) : IEnumerable
Результат IEnumerable

GetDynamicProperties() публичный Метод

public GetDynamicProperties ( ) : IEnumerable
Результат IEnumerable

GetObjectData() публичный Метод

public GetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
dataHolder ISerializationData
context ISerializationContext
Результат void

KB() публичный Метод

public KB ( Name perspective ) : SerializationUtilities.Attributes
perspective Name
Результат SerializationUtilities.Attributes

RegistDynamicProperty() публичный Метод

public RegistDynamicProperty ( Name propertyName, DynamicPropertyCalculator_T1 surrogate, string description = null ) : void
propertyName Name
surrogate DynamicPropertyCalculator_T1
description string
Результат void

RegistDynamicProperty() публичный Метод

public RegistDynamicProperty ( Name propertyName, DynamicPropertyCalculator_T2 surrogate, string description = null ) : void
propertyName Name
surrogate DynamicPropertyCalculator_T2
description string
Результат void

RegistDynamicProperty() публичный Метод

public RegistDynamicProperty ( Name propertyName, DynamicPropertyCalculator_T3 surrogate, string description = null ) : void
propertyName Name
surrogate DynamicPropertyCalculator_T3
description string
Результат void

RegistDynamicProperty() публичный Метод

public RegistDynamicProperty ( Name propertyName, DynamicPropertyCalculator_T4 surrogate, string description = null ) : void
propertyName Name
surrogate DynamicPropertyCalculator_T4
description string
Результат void

SetObjectData() публичный Метод

public SetObjectData ( ISerializationData dataHolder, ISerializationContext context ) : void
dataHolder ISerializationData
context ISerializationContext
Результат void

SetPerspective() публичный Метод

public SetPerspective ( Name newPerspective ) : void
newPerspective Name
Результат void

Tell() публичный Метод

public Tell ( Name property, Name value ) : void
property Name
value Name
Результат void

Tell() публичный Метод

public Tell ( Name property, Name value, Name perspective ) : void
property Name
value Name
perspective Name
Результат void

UnregistDynamicProperty() публичный Метод

public UnregistDynamicProperty ( Name propertyTemplate ) : void
propertyTemplate Name
Результат void