Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
socket2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
ds
socket2
Commits
1001a9cd
Commit
1001a9cd
authored
1 year ago
by
Alessio Igor Bogani
Browse files
Options
Downloads
Patches
Plain Diff
Allow commands execution on FAULT state
parent
1f4e860b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Socket2.xmi
+1
-4
1 addition, 4 deletions
src/Socket2.xmi
src/Socket2StateMachine.cpp
+3
-6
3 additions, 6 deletions
src/Socket2StateMachine.cpp
with
4 additions
and
10 deletions
src/Socket2.xmi
+
1
−
4
View file @
1001a9cd
<?xml version="1.0" encoding="ASCII"?>
<?xml version="1.0" encoding="ASCII"?>
<pogoDsl:PogoSystem
xmi:version=
"2.0"
xmlns:xmi=
"http://www.omg.org/XMI"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:pogoDsl=
"http://www.esrf.fr/tango/pogo/PogoDsl"
>
<pogoDsl:PogoSystem
xmi:version=
"2.0"
xmlns:xmi=
"http://www.omg.org/XMI"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:pogoDsl=
"http://www.esrf.fr/tango/pogo/PogoDsl"
>
<classes
name=
"Socket2"
pogoRevision=
"9.7"
>
<classes
name=
"Socket2"
pogoRevision=
"9.7"
>
<description
description=
""
title=
""
sourcePath=
"/home/alessio
.bogani
/Sources/git-trees/
linkstabilizer/deps/
socket2/src"
language=
"Cpp"
filestogenerate=
"XMI file,Code files,Protected Regions"
license=
"GPL"
hasMandatoryProperty=
"true"
hasConcreteProperty=
"true"
hasAbstractCommand=
"false"
hasAbstractAttribute=
"false"
>
<description
description=
""
title=
""
sourcePath=
"/home/alessio/Sources/git-trees/socket2/src"
language=
"Cpp"
filestogenerate=
"XMI file,Code files,Protected Regions"
license=
"GPL"
hasMandatoryProperty=
"true"
hasConcreteProperty=
"true"
hasAbstractCommand=
"false"
hasAbstractAttribute=
"false"
>
<inheritances
classname=
"Device_Impl"
sourcePath=
""
/>
<inheritances
classname=
"Device_Impl"
sourcePath=
""
/>
<identification
contact=
"at elettra.eu> - Alessio Igor Bogani <alessio.bogani"
author=
"Alessio Igor Bogani <alessio.bogani"
emailDomain=
"elettra.eu>"
classFamily=
"Communication"
siteSpecific=
""
platform=
"Unix Like"
bus=
"Socket"
manufacturer=
"none"
reference=
""
/>
<identification
contact=
"at elettra.eu> - Alessio Igor Bogani <alessio.bogani"
author=
"Alessio Igor Bogani <alessio.bogani"
emailDomain=
"elettra.eu>"
classFamily=
"Communication"
siteSpecific=
""
platform=
"Unix Like"
bus=
"Socket"
manufacturer=
"none"
reference=
""
/>
</description>
</description>
...
@@ -34,7 +34,6 @@
...
@@ -34,7 +34,6 @@
<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>
FAULT
</excludedStates>
<excludedStates>
INIT
</excludedStates>
<excludedStates>
INIT
</excludedStates>
</commands>
</commands>
<commands
name=
"Read"
description=
""
execMethod=
"read"
displayLevel=
"OPERATOR"
polledPeriod=
"0"
>
<commands
name=
"Read"
description=
""
execMethod=
"read"
displayLevel=
"OPERATOR"
polledPeriod=
"0"
>
...
@@ -45,7 +44,6 @@
...
@@ -45,7 +44,6 @@
<type
xsi:type=
"pogoDsl:CharArrayType"
/>
<type
xsi:type=
"pogoDsl:CharArrayType"
/>
</argout>
</argout>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
<excludedStates>
FAULT
</excludedStates>
<excludedStates>
INIT
</excludedStates>
<excludedStates>
INIT
</excludedStates>
</commands>
</commands>
<commands
name=
"ReadUntil"
description=
""
execMethod=
"read_until"
displayLevel=
"OPERATOR"
polledPeriod=
"0"
>
<commands
name=
"ReadUntil"
description=
""
execMethod=
"read_until"
displayLevel=
"OPERATOR"
polledPeriod=
"0"
>
...
@@ -56,7 +54,6 @@
...
@@ -56,7 +54,6 @@
<type
xsi:type=
"pogoDsl:CharArrayType"
/>
<type
xsi:type=
"pogoDsl:CharArrayType"
/>
</argout>
</argout>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
<excludedStates>
FAULT
</excludedStates>
<excludedStates>
INIT
</excludedStates>
<excludedStates>
INIT
</excludedStates>
</commands>
</commands>
<attributes
name=
"InputLength"
attType=
"Scalar"
rwType=
"READ"
displayLevel=
"OPERATOR"
polledPeriod=
"0"
maxX=
""
maxY=
""
allocReadMember=
"true"
isDynamic=
"false"
>
<attributes
name=
"InputLength"
attType=
"Scalar"
rwType=
"READ"
displayLevel=
"OPERATOR"
polledPeriod=
"0"
maxX=
""
maxY=
""
allocReadMember=
"true"
isDynamic=
"false"
>
...
...
This diff is collapsed.
Click to expand it.
src/Socket2StateMachine.cpp
+
3
−
6
View file @
1001a9cd
...
@@ -114,8 +114,7 @@ bool Socket2::is_Reconnections_allowed(TANGO_UNUSED(Tango::AttReqType type))
...
@@ -114,8 +114,7 @@ bool Socket2::is_Reconnections_allowed(TANGO_UNUSED(Tango::AttReqType type))
bool
Socket2
::
is_Write_allowed
(
TANGO_UNUSED
(
const
CORBA
::
Any
&
any
))
bool
Socket2
::
is_Write_allowed
(
TANGO_UNUSED
(
const
CORBA
::
Any
&
any
))
{
{
// Compare device state with not allowed states.
// Compare device state with not allowed states.
if
(
get_state
()
==
Tango
::
FAULT
||
if
(
get_state
()
==
Tango
::
INIT
)
get_state
()
==
Tango
::
INIT
)
{
{
/*----- PROTECTED REGION ID(Socket2::WriteStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION ID(Socket2::WriteStateAllowed) ENABLED START -----*/
...
@@ -134,8 +133,7 @@ bool Socket2::is_Write_allowed(TANGO_UNUSED(const CORBA::Any &any))
...
@@ -134,8 +133,7 @@ bool Socket2::is_Write_allowed(TANGO_UNUSED(const CORBA::Any &any))
bool
Socket2
::
is_Read_allowed
(
TANGO_UNUSED
(
const
CORBA
::
Any
&
any
))
bool
Socket2
::
is_Read_allowed
(
TANGO_UNUSED
(
const
CORBA
::
Any
&
any
))
{
{
// Compare device state with not allowed states.
// Compare device state with not allowed states.
if
(
get_state
()
==
Tango
::
FAULT
||
if
(
get_state
()
==
Tango
::
INIT
)
get_state
()
==
Tango
::
INIT
)
{
{
/*----- PROTECTED REGION ID(Socket2::ReadStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION ID(Socket2::ReadStateAllowed) ENABLED START -----*/
...
@@ -154,8 +152,7 @@ bool Socket2::is_Read_allowed(TANGO_UNUSED(const CORBA::Any &any))
...
@@ -154,8 +152,7 @@ bool Socket2::is_Read_allowed(TANGO_UNUSED(const CORBA::Any &any))
bool
Socket2
::
is_ReadUntil_allowed
(
TANGO_UNUSED
(
const
CORBA
::
Any
&
any
))
bool
Socket2
::
is_ReadUntil_allowed
(
TANGO_UNUSED
(
const
CORBA
::
Any
&
any
))
{
{
// Compare device state with not allowed states.
// Compare device state with not allowed states.
if
(
get_state
()
==
Tango
::
FAULT
||
if
(
get_state
()
==
Tango
::
INIT
)
get_state
()
==
Tango
::
INIT
)
{
{
/*----- PROTECTED REGION ID(Socket2::ReadUntilStateAllowed) ENABLED START -----*/
/*----- PROTECTED REGION ID(Socket2::ReadUntilStateAllowed) ENABLED START -----*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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