Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
naomod
faezeh-public
XTDL
Commits
d162bd85
Commit
d162bd85
authored
Jun 28, 2022
by
Faezeh KHORRAM
💬
Browse files
commenting not-reactive semantics
parent
511f6ac5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Language_Workbench/xArduino_Reactive/org.imt.arduino.reactive.interpreter/src/org/imt/arduino/reactive/interpreter/OperationalSemantics.xtend
View file @
d162bd85
...
...
@@ -131,29 +131,29 @@ class Project_ExecutableAspect {
//}
}
@
Main
def
void
main
()
{
val
start
=
System
.
nanoTime
_self
.
execute
val
stop
=
System
.
nanoTime
//
println
(
"time to execute "
+
(
stop
-
start
))
}
@
Step
def
void
setup
()
{
_self
.
eAllContents
().
forEach
[
o
|{
if
(
o
instanceof
IntegerVariable
)
{
o
.
value
=
o
.
initialValue
}
else
if
(
o
instanceof
BooleanVariable
)
{
o
.
value
=
o
.
initialValue
}
}]
}
@
InitializeModel
def
void
initializeModel
(
EList
<
String
>
args
){
_self
.
setup
}
//
@
Main
//
def
void
main
()
{
//
val
start
=
System
.
nanoTime
//
_self
.
execute
//
val
stop
=
System
.
nanoTime
//
//
println
(
"time to execute "
+
(
stop
-
start
))
//
}
//
//
@
Step
//
def
void
setup
()
{
//
_self
.
eAllContents
().
forEach
[
o
|{
//
if
(
o
instanceof
IntegerVariable
)
{
//
o
.
value
=
o
.
initialValue
//
}
else
if
(
o
instanceof
BooleanVariable
)
{
//
o
.
value
=
o
.
initialValue
//
}
//
}]
//
}
//
//
@
InitializeModel
//
def
void
initializeModel
(
EList
<
String
>
args
){
//
_self
.
setup
//
}
}
@
Aspect
(
className
=
Sketch
)
...
...
Write
Preview
Supports
Markdown
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