Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mbe-tools
TTool
Commits
c1ca05d2
Commit
c1ca05d2
authored
May 09, 2022
by
Ludovic Apvrille
Browse files
Remove use of TraceManager in remotesimulation
parent
cba2a488
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/remotesimulation/CommandParser.java
View file @
c1ca05d2
...
...
@@ -39,7 +39,7 @@
package
remotesimulation
;
import
myutil.TraceManager
;
//
import myutil.TraceManager;
import
org.jsoup.Jsoup
;
import
org.jsoup.nodes.Document
;
import
org.jsoup.nodes.Element
;
...
...
@@ -48,7 +48,7 @@ import org.jsoup.select.Elements;
import
java.io.*
;
import
java.nio.charset.StandardCharsets
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
/**
...
...
@@ -145,14 +145,14 @@ public class CommandParser {
int
cpt
=
0
;
String
cmds
[]
=
cmd
.
split
(
" "
);
TraceManager
.
addDev
(
"cmd "
+
cmd
+
" has "
+
cmds
.
length
+
" elements | commandList size:"
+
commandList
.
size
());
//
TraceManager.addDev("cmd " + cmd + " has " + cmds.length + " elements | commandList size:" + commandList.size());
for
(
SimulationCommand
sc
:
commandList
)
{
// Same command name?
//TraceManager.addDev("Testing command:" + sc.userCommand + " alias:" + sc.alias);
if
(
sc
.
userCommand
.
equals
(
cmds
[
0
])
||
sc
.
alias
.
equals
(
cmds
[
0
]))
{
TraceManager
.
addDev
(
"Command is valid:"
+
cmds
[
0
]
+
". Now testing parameters. Expected parameters (min/max):"
+
sc
.
getMinNumberOfParameters
()
+
"/"
+
sc
.
getMaxNumberOfParameters
()
+
"; size of user parameters: "
+
(
cmds
.
length
-
1
));
//
TraceManager.addDev("Command is valid:" + cmds[0] + ". Now testing parameters. Expected parameters (min/max):" +
//
sc.getMinNumberOfParameters() + "/" + sc.getMaxNumberOfParameters() + "; size of user parameters: " + (cmds.length-1));
// Compatible arguments?
if
(
sc
.
areParametersCompatible
(
cmds
))
{
index
=
cpt
;
...
...
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