Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
data_exporter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IA2
data_exporter
Commits
d331bf55
Commit
d331bf55
authored
11 years ago
by
Marco De Marco
Browse files
Options
Downloads
Patches
Plain Diff
State machine modified
parent
f03c70aa
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/DataExporter.cpp
+5
-5
5 additions, 5 deletions
src/DataExporter.cpp
src/DataExporter.h
+2
-2
2 additions, 2 deletions
src/DataExporter.h
src/DataExporter.xmi
+4
-0
4 additions, 0 deletions
src/DataExporter.xmi
src/DataExporterStateMachine.cpp
+12
-2
12 additions, 2 deletions
src/DataExporterStateMachine.cpp
with
23 additions
and
9 deletions
src/DataExporter.cpp
+
5
−
5
View file @
d331bf55
...
@@ -480,7 +480,7 @@ void DataExporter::get_device_property()
...
@@ -480,7 +480,7 @@ void DataExporter::get_device_property()
//--------------------------------------------------------
//--------------------------------------------------------
void
DataExporter
::
always_executed_hook
()
void
DataExporter
::
always_executed_hook
()
{
{
DEBUG
_STREAM
<<
"DataExporter::always_executed_hook() "
<<
device_name
<<
endl
;
INFO
_STREAM
<<
"DataExporter::always_executed_hook() "
<<
device_name
<<
endl
;
/*----- PROTECTED REGION ID(DataExporter::always_executed_hook) ENABLED START -----*/
/*----- PROTECTED REGION ID(DataExporter::always_executed_hook) ENABLED START -----*/
if
(
get_state
()
!=
Tango
::
FAULT
)
if
(
get_state
()
!=
Tango
::
FAULT
)
...
...
This diff is collapsed.
Click to expand it.
src/DataExporter.h
+
2
−
2
View file @
d331bf55
This diff is collapsed.
Click to expand it.
src/DataExporter.xmi
+
4
−
0
View file @
d331bf55
...
@@ -118,6 +118,8 @@
...
@@ -118,6 +118,8 @@
<type
xsi:type=
"pogoDsl:VoidType"
/>
<type
xsi:type=
"pogoDsl:VoidType"
/>
</argout>
</argout>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
<excludedStates>
ON
</excludedStates>
<excludedStates>
FAULT
</excludedStates>
</commands>
</commands>
<commands
name=
"Off"
description=
"Deactivate data exporter"
execMethod=
"off"
displayLevel=
"OPERATOR"
polledPeriod=
"0"
>
<commands
name=
"Off"
description=
"Deactivate data exporter"
execMethod=
"off"
displayLevel=
"OPERATOR"
polledPeriod=
"0"
>
<argin
description=
""
>
<argin
description=
""
>
...
@@ -127,6 +129,8 @@
...
@@ -127,6 +129,8 @@
<type
xsi:type=
"pogoDsl:VoidType"
/>
<type
xsi:type=
"pogoDsl:VoidType"
/>
</argout>
</argout>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
<excludedStates>
OFF
</excludedStates>
<excludedStates>
FAULT
</excludedStates>
</commands>
</commands>
<states
name=
"ON"
description=
"Data exporter is in ON state (ready to incoming connections)"
>
<states
name=
"ON"
description=
"Data exporter is in ON state (ready to incoming connections)"
>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
...
...
This diff is collapsed.
Click to expand it.
src/DataExporterStateMachine.cpp
+
12
−
2
View file @
d331bf55
...
@@ -64,10 +64,15 @@ namespace DataExporter_ns
...
@@ -64,10 +64,15 @@ namespace DataExporter_ns
//--------------------------------------------------------
//--------------------------------------------------------
bool
DataExporter
::
is_On_allowed
(
TANGO_UNUSED
(
const
CORBA
::
Any
&
any
))
bool
DataExporter
::
is_On_allowed
(
TANGO_UNUSED
(
const
CORBA
::
Any
&
any
))
{
{
// Not any excluded states for On command.
// Compare device state with not allowed states.
if
(
get_state
()
==
Tango
::
ON
||
get_state
()
==
Tango
::
FAULT
)
{
/*----- PROTECTED REGION ID(DataExporter::OnStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION ID(DataExporter::OnStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/
// DataExporter::OnStateAllowed
/*----- PROTECTED REGION END -----*/
// DataExporter::OnStateAllowed
return
false
;
}
return
true
;
return
true
;
}
}
...
@@ -79,10 +84,15 @@ bool DataExporter::is_On_allowed(TANGO_UNUSED(const CORBA::Any &any))
...
@@ -79,10 +84,15 @@ bool DataExporter::is_On_allowed(TANGO_UNUSED(const CORBA::Any &any))
//--------------------------------------------------------
//--------------------------------------------------------
bool
DataExporter
::
is_Off_allowed
(
TANGO_UNUSED
(
const
CORBA
::
Any
&
any
))
bool
DataExporter
::
is_Off_allowed
(
TANGO_UNUSED
(
const
CORBA
::
Any
&
any
))
{
{
// Not any excluded states for Off command.
// Compare device state with not allowed states.
if
(
get_state
()
==
Tango
::
OFF
||
get_state
()
==
Tango
::
FAULT
)
{
/*----- PROTECTED REGION ID(DataExporter::OffStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION ID(DataExporter::OffStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/
// DataExporter::OffStateAllowed
/*----- PROTECTED REGION END -----*/
// DataExporter::OffStateAllowed
return
false
;
}
return
true
;
return
true
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment