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
524fe4bd
Commit
524fe4bd
authored
Feb 09, 2015
by
Jonathan Shahen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
important bug fixes for Mohawk T parser and converting to TRole and TRule
parent
2a599ab7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
src/mohawk/converter/ConverterCUI.java
src/mohawk/converter/ConverterCUI.java
+5
-0
src/mohawk/converter/generated/MohawkTARBAC.g4
src/mohawk/converter/generated/MohawkTARBAC.g4
+1
-1
src/mohawk/converter/to/tred/ConvertToTRole.java
src/mohawk/converter/to/tred/ConvertToTRole.java
+1
-0
No files found.
src/mohawk/converter/ConverterCUI.java
View file @
524fe4bd
...
...
@@ -80,5 +80,10 @@ public class ConverterCUI {
System
.
out
.
println
(
OptionString
.
TO_ASAPTIME_NSA
.
c
()
+
OptionString
.
SPECFILE
.
c
(
"data/reduction/"
)
+
OptionString
.
LOGLEVEL
.
c
(
"debug"
)
+
OptionString
.
BULK
.
c
()
+
OptionString
.
SPECEXT
.
c
(
fileExt
.
Mohawk_T
)
+
"!exit"
);
System
.
out
.
println
(
""
);
System
.
out
.
println
(
OptionString
.
TO_ALL
.
c
()
+
OptionString
.
SPECFILE
.
c
(
"data/tests/randomTest.mohawk.T"
)
+
OptionString
.
LOGLEVEL
.
c
(
"debug"
)
+
OptionString
.
SPECEXT
.
c
(
fileExt
.
Mohawk_T
)
+
"!exit"
);
}
}
src/mohawk/converter/generated/MohawkTARBAC.g4
View file @
524fe4bd
...
...
@@ -271,7 +271,7 @@ timeslotArray returns [ArrayList<TimeSlot> t] @init {
mohawkT
.
timeIntervalHelper
.
add
(
new
TimeSlot
($
b
.
val
));
}
)
?
RightBracket
)
*
RightBracket
|
c
=
timeslot
{
$
t
.
add
(
new
TimeSlot
($
c
.
val
));
...
...
src/mohawk/converter/to/tred/ConvertToTRole.java
View file @
524fe4bd
...
...
@@ -67,6 +67,7 @@ public class ConvertToTRole extends ConvertTo {
File
convertedFile
=
new
File
(
file
.
getAbsolutePath
()
+
getFileExtenstion
());
FileOutputStream
out
=
new
FileOutputStream
(
convertedFile
);
out
.
write
(
header
.
getBytes
());
// Convert Rules into Reduced ASAPTime NSA Rules
for
(
Rule
r
:
workableRules
)
{
//newRules.add(new TRole_Rule(r, roleHelper, 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