#include <tvu_sr.h>
Inheritance diagram for CTSRMotor::
Public Types | |
enum | { MAX_ENTITIES = 1024 } |
Markers to avoid to reuse an entity. More... | |
Public Methods | |
CTSRMotor () | |
Constructor/destructor. More... | |
~CTSRMotor () | |
DEFINE_ID_FUNCTIONS (CTSRMotor, CTObject, CLASSNAME_SR_SRMOTOR_ID, CLASSNAME_SR_SRMOTOR) friend class CTSRModel | |
virtual TBOOL | OnPreLoad (LPTBYTE *lpBuffers) |
Overwrite. More... | |
virtual TBOOL | OnPostLoad (LPTBYTE *lpBuffers) |
virtual CTList | GetSaveLoadObjects (TBOOL bOnLoad=TTRUE) |
The children to save/load. More... | |
virtual CTObject* | Calculate (TINT iOperator, CTObject *Object) |
Calculate the mathematical operators. More... | |
TBOOL | Init () |
Preprocessing Init the motor. More... | |
TBOOL | InitHooks () |
TBOOL | AddScenario (TLPCSTR sName) |
Add a scenario model and its dependence scenario models to the list of used model by its name. More... | |
TBOOL | BuildModels () |
Build the models. More... | |
TBOOL | BuildVars () |
Add the variable to the list of environment variables. More... | |
TBOOL | AddContextObject (CTObject *pObject) |
Add a context object. More... | |
TBOOL | SetContext (CTList pContext) |
Attach the context. More... | |
TBOOL | ChangeObjectState (TLPCSTR oName, TINT oNewState) |
Change object state. More... | |
TBOOL | CreateBuffers () |
Create the tree to contain the entities. More... | |
CTObject* | CreateBuffers (CTList pVars, TINT *pIDs, TINT *eIDs, TINT *zIDs, TINT *wIDs) |
Create the tree for a list of variables (of o model). More... | |
TDWORD | CalculateNBNodes (CTList pVars, TDWORD *nbPersons, TDWORD *nbEquipment, TDWORD *nbZones, TDWORD *nbWalls) |
Calculate the number of nodes neccessary for the graph of recognized scenarios for a list of actor variables. More... | |
CTObject* | FindObject (TLPCSTR ObjectName) |
Find an predefined object. The motor first finds in the list m_LoadedModels, and then in CTStockObjects::Default. More... | |
TBOOL | SetPersons (CTList pList, TINT iFrame, TINT ppType=CTPersonPipe::TS_INDIVIDUAL) |
Convert from the input stream. More... | |
TBOOL | Infer () |
Infer. More... | |
TBOOL | IsSatisfied (CTSRModel *pModel, CTSRTriggerInstance *pTrigger=TNULL) |
Verify if the model is satisfied. More... | |
TBOOL | IsSatisfied (CTSRModel *pModel, CTList pVars, TBOOL bFirstActor=TFALSE) |
For elementary scenarios Verify if the model is satisfied witch the list of variables bFirstActor = TTRUE, start. More... | |
TBOOL | IsSatisfied (CTSRTriggerInstance *pTrigger) |
For composed scenarios Verify if the model is satisfied witch the list of variables. More... | |
CTSRBehaviourInstance* | AddEntity (CTSRModel *pModel) |
Add a new entity for the model pModel: model is just satisfied Return: the created entity. More... | |
TINT | ModelCount () |
Get the number of used models. More... | |
CTList | CreateRBNameList () |
Create the list of names of recognised behaviours at the current frame. More... | |
TBOOL | DestroyRecognizedScenarios (TBOOL bDestroyImmediate) |
Destroy recognized scenrios. More... | |
TBOOL | DestroyRecognizedScenariosPerson (CTSRPerson *pPerson) |
Destroy recognized scenrios for a person. More... | |
TBOOL | MarkToDestroy (TBOOL bDestroyImmediate) |
Find senarios to be destroyed. More... | |
TBOOL | MarkToDestroy (CTSRPerson *pPerson) |
Find senarios to be destroyed for a person. More... | |
TBOOL | DestroyMarkedScenarios () |
To do destroy recognized scenrios after marked all scenarios to be destroyed. More... | |
TBOOL | SuspendScenriosPerson (CTSRPerson *pPerson) |
To suspend all recognized scenarios relative to a person. More... | |
TINT | GetNumberModels (TINT ModelType) |
For statistics. More... | |
Static Public Methods | |
CTSRMotor* | FindMotor (TLPCSTR MotorName=TNULL) |
Find a motor by its name: if the name is null => find the first motor ocuring. More... | |
TBOOL | AddMotor (CTSRMotor *pMotor) |
TBOOL | SetActiveMotor (TLPCSTR MotorName) |
TBOOL | SetActiveMotor (CTSRMotor *pMotor) |
TBOOL | InitLIB () |
To start up the lib This function must be call at the begin of the main program. More... | |
CTObject* | CF_GetCurrentMotor (CTList pObjects) |
=========== CODED FUNCTIONS ===============. More... | |
CTObject* | CF_GetAllMotors (CTList pObjects) |
CTObject* | CF_SetActiveMotor (CTList pObjects) |
Data Fields | |
CTList | m_Persons |
Contain every persons. More... | |
CTInt | m_nMaxPersons |
Maximal number of persons: be set by user. More... | |
CTArray* | m_Entities |
Contains every temporal entities classified by persons person1 Model1 Obj1... Obj2 Model2 person2. More... | |
CTArray2* | m_EntityIndexes |
Index the recognized scenarios by their ending time. More... | |
CTList* | m_RecognizedScenarioIndexes |
Index the recognized scenarios by their model. Each model has a list of recognized scenarios corresponding the model. The recognized scenrios of a list is ordered by its ending time. More... | |
CTList | m_LoadedModels |
List of loaded models. More... | |
CTList | m_UsedModels |
List of used models. More... | |
CTList | m_NameUsedModels |
CTList | m_NonAutoProlongedModels |
CTList | m_OneSolutionModels |
CTList | m_PrimaryModels |
TINT | m_nModels |
Number of used models. More... | |
CTList | m_AllContextObjects |
List of interested context objects/zones. More... | |
CTList | m_InterestedObjects |
CTList | m_InterestedZones |
CTList | m_InterestedWalls |
CTList | m_NameInterestedObjects |
TINT | m_nObjects |
Number of objects. More... | |
TINT | m_nZones |
Number of zones. More... | |
TINT | m_nWalls |
Number of walls. More... | |
CTList | m_EnvVars |
List of environment variables. More... | |
CTList | m_pTriggers |
Trigger instances. More... | |
CTArray | m_RecognisedBehaviourCount |
To count the recognised behaviours at each frame. More... | |
CTList | m_Alarms |
Contains the alarms generated by the engine. More... | |
CTInt | m_ScenarioLife |
Maximum duration of scenario life. More... | |
CTList | m_NewPersonNodes |
CTList | m_NewEquipmentNodes |
CTList | m_NewZoneNodes |
CTList | m_NewWallNodes |
TINT | m_nTotalPersons |
Count. More... | |
TINT | m_nMinInvolvedPersons |
TINT | m_nMaxInvolvedPersons |
TINT | m_nTotalRecognizedScenarios |
TINT | m_nMinRecognizedScenarios |
TINT | m_nMaxRecognizedScenarios |
TBOOL | m_bCreateExport |
If we want to create data to export. More... | |
CTFunctionModel* | m_InitMotor |
Hook functions. More... | |
CTFunctionModel* | m_StartFrame |
CTFunctionModel* | m_EndFrame |
CTBool* | m_ShowResults |
Option Show or not the recognition results. More... | |
CTBool* | m_CountResults |
Count or not the recognised behaviours. More... | |
CTTree | m_OldItemConstructors |
Tree of default constructors. More... | |
Static Public Attributes | |
CTInt | m_T |
Current time. More... | |
CTSRMotor* | m_pCurrentMotor |
Current motor. More... | |
char | m_MarkerPersons [MAX_ENTITIES] |
char | m_MarkerZones [MAX_ENTITIES] |
char | m_MarkerWalls [MAX_ENTITIES] |
char | m_MarkerObjects [MAX_ENTITIES] |
CTList | m_AllMotors |
List of all used motors. More... | |
CTTree | m_ItemConstructors |
Protected Methods | |
virtual TBOOL | VerifyModelCoherence () |
Verify if there is a circle in the models. More... | |
virtual TBOOL | VerifyModelCoherence (CTList AllModels, CTList ModelsBeingVerified, CTSRModel *pModel) |
Friends | |
class | CTSRBehaviourInstance |
|
Markers to avoid to reuse an entity.
00408 { MAX_ENTITIES = 1024 }; |
|
Constructor/destructor.
|
|
Add a context object.
|
|
Add a new entity for the model pModel: model is just satisfied Return: the created entity.
|
|
Add a scenario model and its dependence scenario models to the list of used model by its name.
|
|
Build the models.
|
|
Add the variable to the list of environment variables.
|
|
=========== CODED FUNCTIONS ===============.
|
|
Calculate the mathematical operators.
Reimplemented from CTObject. |
|
Calculate the number of nodes neccessary for the graph of recognized scenarios for a list of actor variables.
|
|
Change object state.
|
|
Create the tree for a list of variables (of o model).
|
|
Create the tree to contain the entities.
|
|
Create the list of names of recognised behaviours at the current frame.
|
|
To do destroy recognized scenrios after marked all scenarios to be destroyed.
|
|
Destroy recognized scenrios.
|
|
Destroy recognized scenrios for a person.
|
|
Find a motor by its name: if the name is null => find the first motor ocuring.
|
|
Find an predefined object. The motor first finds in the list m_LoadedModels, and then in CTStockObjects::Default.
|
|
For statistics.
|
|
The children to save/load.
Reimplemented from CTObject. |
|
Infer.
|
|
Preprocessing Init the motor.
|
|
To start up the lib This function must be call at the begin of the main program.
|
|
For composed scenarios Verify if the model is satisfied witch the list of variables.
|
|
For elementary scenarios Verify if the model is satisfied witch the list of variables bFirstActor = TTRUE, start.
|
|
Verify if the model is satisfied.
|
|
Find senarios to be destroyed for a person.
|
|
Find senarios to be destroyed.
|
|
Get the number of used models.
00290 { return m_nModels; }; |
|
Overwrite.
Reimplemented from CTObject. |
|
Attach the context.
|
|
Convert from the input stream.
|
|
To suspend all recognized scenarios relative to a person.
|
|
Verify if there is a circle in the models.
|
|
Contains the alarms generated by the engine.
|
|
List of interested context objects/zones.
|
|
List of all used motors.
|
|
Count or not the recognised behaviours.
|
|
Contains every temporal entities classified by persons person1 Model1 Obj1... Obj2 Model2 person2.
|
|
Index the recognized scenarios by their ending time.
|
|
List of environment variables.
|
|
Hook functions.
|
|
List of loaded models.
|
|
Tree of default constructors.
|
|
Contain every persons.
|
|
To count the recognised behaviours at each frame.
|
|
Index the recognized scenarios by their model. Each model has a list of recognized scenarios corresponding the model. The recognized scenrios of a list is ordered by its ending time.
|
|
Maximum duration of scenario life.
|
|
Option Show or not the recognition results.
|
|
Current time.
|
|
List of used models.
|
|
If we want to create data to export.
|
|
Maximal number of persons: be set by user.
|
|
Number of used models.
|
|
Number of objects.
|
|
Count.
|
|
Number of walls.
|
|
Number of zones.
|
|
Current motor.
|
|
Trigger instances.
|