VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
disaggregatedPatrolBetweenController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
12
#pragma once
13
14
#include "
vrfobjcore/singleTaskControllerComponent.h
"
15
#include <vlutil/vlString.h>
16
17
class
DtSimMessage
;
18
class
DtAggregatePatrolBetweenPSR
;
19
35
#include "
vrfmodel/vrfmodelDefines.h
"
36
class
DT_DLL_vrfmodel
DtDisaggregatedPatrolBetweenController
:
public
DtSingleTaskControllerComponent
37
{
38
public
:
39
42
DtDisaggregatedPatrolBetweenController
(
const
DtString
& name,
43
DtVrfObject
* owner,
44
DtSimManager
* simManager,
45
DtComponentDescriptor
* desc = 0,
46
DtReaderWriterRegistry
* parentRegistry = 0);
47
48
virtual
~
DtDisaggregatedPatrolBetweenController
();
49
51
virtual
bool
init
();
52
55
virtual
DtString
type
()
const
;
56
59
virtual
void
registerTaskMsgCallbacks
();
60
63
virtual
void
tick
();
64
66
virtual
DtSimTaskStatePtr
currentTaskState
()
const
;
67
72
static
void
patrolTwoPointsTaskCallback(
DtSimMessage
* msg,
void
* usr,
DtSimTaskStatePtr
taskStatePtr);
73
77
static
void
taskCompleteReportCallback(
DtSimMessage
* msg,
void
* usr);
78
82
static
DtSimComponent
* creator(
const
DtString
& name,
83
DtVrfObject
* owner,
84
DtSimManager
* simManager,
85
DtComponentDescriptor
* desc = 0,
86
DtReaderWriterRegistry
* parentRegistry = 0);
87
88
protected
:
89
94
virtual
void
onPatrolTwoPointsTask(
DtSimMessage
* msg,
DtSimTaskStatePtr
taskStatePtr);
95
99
virtual
void
onTaskComplete(
DtSimMessage
* msg);
100
108
virtual
bool
moveTo(
const
DtString
& controlPointName);
109
115
virtual
bool
createPSR();
116
117
private
:
118
120
DtDisaggregatedPatrolBetweenController
(
const
DtDisaggregatedPatrolBetweenController
& orig);
121
123
DtDisaggregatedPatrolBetweenController
&
operator=
(
const
DtDisaggregatedPatrolBetweenController
& orig);
124
125
protected
:
126
129
DtAggregatePatrolBetweenPSR
*
myProcessState
;
130
132
bool
myFirstTick
;
133
};
134
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)