Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F85108889
Supervisor.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Sep 26, 20:25
Size
818 B
Mime Type
text/x-c
Expires
Sat, Sep 28, 20:25 (2 d)
Engine
blob
Format
Raw Data
Handle
21130031
Attached To
R6622 liboncilla
Supervisor.cpp
View Options
/*
* Supervisor.cpp
*
* Created on: Jan 21, 2013
* Author: tuleu
*/
#include "Supervisor.h"
#include <liboncilla/utils/OncillaBackend.h>
#include "Oncilla.h"
namespace
rci
{
namespace
oncilla
{
Supervisor
::
Supervisor
(
OncillaBackend
&
backend
)
:
d_l4s
(
4
,
SupervisorL4
::
Ptr
())
,
d_trunk
(
backend
.
CreateSupervisorTrunk
()){
LIBONCILLA_FOREACH_LEG
(
l
){
d_l4s
[
l
]
=
backend
.
CreateSupervisorL4
(
l
,
Oncilla
::
nameOfLeg
(
l
)
+
" Oncilla Supervised L4"
);
}
}
Supervisor
::~
Supervisor
(){
}
const
SupervisorTrunk
::
Ptr
&
Supervisor
::
getTrunk
(){
return
d_trunk
;
}
const
SupervisorL4
::
Ptr
&
Supervisor
::
getL4
(
Leg
l
){
if
(
l
>=
NUM_LEGS
){
std
::
ostringstream
os
;
os
<<
"Leg "
<<
l
<<
"is out of range [0 3]."
;
throw
std
::
out_of_range
(
os
.
str
());
}
return
d_l4s
[
l
];
}
}
/* namespace oncilla */
}
/* namespace rci */
Event Timeline
Log In to Comment