Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
mohawk-t-conversion-tool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jon Shahen
mohawk-t-conversion-tool
Commits
4411a1fa
Commit
4411a1fa
authored
Nov 05, 2015
by
Jonathan Shahen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASASPTimeSA, TREDROLE, and TREDRULE now use the second Remover CanEnable reduction
parent
f74dca41
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
src/mohawk/converter/to/asaptime/ConvertToASAPTimeSA.java
src/mohawk/converter/to/asaptime/ConvertToASAPTimeSA.java
+12
-3
src/mohawk/converter/to/tred/ConvertToTRole.java
src/mohawk/converter/to/tred/ConvertToTRole.java
+12
-3
No files found.
src/mohawk/converter/to/asaptime/ConvertToASAPTimeSA.java
View file @
4411a1fa
...
...
@@ -18,6 +18,7 @@ import mohawk.global.timing.MohawkTiming;
public
class
ConvertToASAPTimeSA
extends
ConvertTo
{
public
static
final
Logger
logger
=
Logger
.
getLogger
(
"mohawk"
);
public
int
canEnableVersion
=
2
;
public
ConvertToASAPTimeSA
(
MohawkTiming
timing
)
{
super
(
timing
);
...
...
@@ -38,9 +39,17 @@ public class ConvertToASAPTimeSA extends ConvertTo {
/* Timing */
timing
.
stopTimer
(
tPrefix
+
"_"
+
"deepcopy"
);
// removeEnableDisableRules and alwaysOnRules are Deep Copies
/* Timing */
timing
.
startTimer
(
tPrefix
+
"_"
+
"removeEnableDisableRules"
);
workableRules
=
roleHelper
.
removeEnableDisableRules
(
m
.
getAllRules
());
/* Timing */
timing
.
stopTimer
(
tPrefix
+
"_"
+
"removeEnableDisableRules"
);
/* Timing */
timing
.
startTimer
(
tPrefix
+
"_removeEnableDisableRules"
);
switch
(
canEnableVersion
)
{
case
1
:
workableRules
=
roleHelper
.
removeEnableDisableRules
(
m
.
getAllRules
());
break
;
case
2
:
workableRules
=
roleHelper
.
removeEnableDisableRulesv2
(
m
.
getAllRules
());
break
;
}
/* Timing */
timing
.
stopTimer
(
tPrefix
+
"_removeEnableDisableRules"
);
if
(
logger
.
isLoggable
(
Level
.
FINE
))
{
logger
.
fine
(
"[STEPWISE] Query Before roleHelper.alwaysOnRules Conversion: "
+
workableQuery
);
...
...
src/mohawk/converter/to/tred/ConvertToTRole.java
View file @
4411a1fa
...
...
@@ -21,6 +21,7 @@ import mohawk.global.timing.MohawkTiming;
public
class
ConvertToTRole
extends
ConvertTo
{
public
static
final
Logger
logger
=
Logger
.
getLogger
(
"mohawk"
);
public
int
canEnableVersion
=
2
;
public
ConvertToTRole
(
MohawkTiming
timing
)
{
super
(
timing
);
...
...
@@ -40,9 +41,17 @@ public class ConvertToTRole extends ConvertTo {
Query
workableQuery
=
new
Query
(
m
.
query
);
/* Timing */
timing
.
stopTimer
(
tPrefix
+
"_"
+
"deepcopy"
);
/* Timing */
timing
.
startTimer
(
tPrefix
+
"_"
+
"removeEnableDisableRules"
);
workableRules
=
roleHelper
.
removeEnableDisableRules
(
m
.
getAllRules
());
/* Timing */
timing
.
stopTimer
(
tPrefix
+
"_"
+
"removeEnableDisableRules"
);
/* Timing */
timing
.
startTimer
(
tPrefix
+
"_removeEnableDisableRules"
);
switch
(
canEnableVersion
)
{
case
1
:
workableRules
=
roleHelper
.
removeEnableDisableRules
(
m
.
getAllRules
());
break
;
case
2
:
workableRules
=
roleHelper
.
removeEnableDisableRulesv2
(
m
.
getAllRules
());
break
;
}
/* Timing */
timing
.
stopTimer
(
tPrefix
+
"_removeEnableDisableRules"
);
/* Timing */
timing
.
startTimer
(
tPrefix
+
"_"
+
"alwaysOnRules"
);
workableRules
=
roleHelper
.
alwaysOnRules
(
workableRules
,
workableQuery
,
timeIntervalHelper
);
...
...
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