7 #ifndef __intelligence_ControlCenter_h__ 8 #define __intelligence_ControlCenter_h__ 22 Functor<Record> viewpoint;
23 Functor<Record> purview;
24 Functor< sp<RecordGroup> > controlled;
25 Functor< sp<RecordGroup> > behaviors;
26 Functor< sp<Component> > selfSignaler;
27 Functor<I32> dominance;
36 add(viewpoint, FE_USE(
"ai:viewpoint"));
37 add(purview, FE_USE(
"ai:observation"));
39 add(controlled, FE_SPEC(
"ai:controlled",
40 "RG under our control"));
41 add(behaviors, FE_SPEC(
"ai:behaviors",
43 add(selfSignaler, FE_SPEC(
"ai:selfSignaler",
44 "sp<Component> signaled for behaving"));
45 add(dominance, FE_SPEC(
"ai:dominance",
46 "Magnitude of control"));
47 add(time, FE_USE(
"sim:time"));
54 selfSignaler.attribute()->setSerialize(FALSE);
56 controlled.attribute()->setCloneable(FALSE);
57 behaviors.attribute()->setCloneable(FALSE);
58 selfSignaler.attribute()->setCloneable(FALSE);
59 purview.attribute()->setCloneable(FALSE);
61 identifier()=
"ControlCenter";
63 controlled.createAndSetRecordGroup();
64 controlled()->setWeak(TRUE);
66 behaviors.createAndSetRecordGroup();
68 selfSignaler.createAndSetComponent(
"SignalerI");
71 observationRV.
bind(scope());
73 observationRV.observer()=record();
76 sphereRV.
bind(scope());
79 sphereRV.radius()=2.0f;
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: ControlCenter.h:49
Controlled RecordView.
Definition: Controlled.h:19
void bind(sp< Scope > &rspScope)
Associate with a Scope.
Definition: RecordView.h:319
ControlCenter RecordView.
Definition: ControlCenter.h:19
kernel
Definition: namespace.dox:3
Radio RecordView.
Definition: Radio.h:19
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: ControlCenter.h:31
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: Radio.h:38
Observation RecordView.
Definition: Observation.h:22
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: Controlled.h:37
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: Controlled.h:27
Record createRecord(void)
Create a Record using all the attributes.
Definition: RecordView.h:469
Sphere RecordView.
Definition: Sphere.h:28
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: Radio.h:28