Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
NomadCommandSystem
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Instrument Control
NomadCommandSystem
Commits
d8bfd350
Commit
d8bfd350
authored
May 21, 2019
by
Hélène Ortiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a method to find the controller name of a property when we are sure
that this controller is not a driver
parent
c091c2ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/main/java/fr/ill/ics/core/property/Property.java
src/main/java/fr/ill/ics/core/property/Property.java
+9
-0
No files found.
src/main/java/fr/ill/ics/core/property/Property.java
View file @
d8bfd350
...
@@ -865,6 +865,15 @@ public abstract class Property implements ServerPropertyChangeListener, ICommand
...
@@ -865,6 +865,15 @@ public abstract class Property implements ServerPropertyChangeListener, ICommand
}
}
public
String
getControllerNameForDynamicOrNot
()
{
int
servantId
=
PropertyDatabase
.
getInstance
().
getServantIdForProperty
(
id
);
if
(
servantId
==
-
1
)
{
servantId
=
PropertyDatabase
.
getInstance
().
getServantIdForDynamicProperty
(
id
);
}
return
getServantName
(
servantId
);
}
private
String
getServantName
(
int
servantId
)
{
private
String
getServantName
(
int
servantId
)
{
if
(
ServantDatabase
.
getInstance
().
isController
(
servantId
))
{
if
(
ServantDatabase
.
getInstance
().
isController
(
servantId
))
{
return
ServantDatabase
.
getInstance
().
getControllerName
(
servantId
);
return
ServantDatabase
.
getInstance
().
getControllerName
(
servantId
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment