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
1b504e1d
Commit
1b504e1d
authored
Feb 08, 2015
by
Jonathan Shahen (Ubuntu)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed TRole formatting issue
parent
eeb0aa3c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
src/mohawk/converter/ConverterCUI.java
src/mohawk/converter/ConverterCUI.java
+3
-0
src/mohawk/converter/generated/MohawkTARBAC.g4
src/mohawk/converter/generated/MohawkTARBAC.g4
+0
-0
src/mohawk/converter/to/tred/ConvertToTRole.java
src/mohawk/converter/to/tred/ConvertToTRole.java
+1
-1
No files found.
src/mohawk/converter/ConverterCUI.java
View file @
1b504e1d
...
...
@@ -77,5 +77,8 @@ public class ConverterCUI {
System
.
out
.
println
(
OptionString
.
TO_ALL
.
c
()
+
OptionString
.
SPECFILE
.
c
(
"data/Mohawk/positive/"
)
+
OptionString
.
LOGLEVEL
.
c
(
"debug"
)
+
OptionString
.
BULK
.
c
()
+
OptionString
.
SPECEXT
.
c
(
fileExt
.
Mohawk_T
)
+
"!exit"
);
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"
);
}
}
src/mohawk/converter/generated/
mohawktarbac
.g4
→
src/mohawk/converter/generated/
MohawkTARBAC
.g4
View file @
1b504e1d
File moved
src/mohawk/converter/to/tred/ConvertToTRole.java
View file @
1b504e1d
...
...
@@ -63,7 +63,7 @@ public class ConvertToTRole extends ConvertTo {
String
template
=
ConvertTo
.
readFile
(
this
.
getClass
().
getResource
(
"uzunTemplate.st"
));
ST
st
=
new
ST
(
template
);
st
.
add
(
"numRoles"
,
roleHelper
.
size
());
st
.
add
(
"numTimeSlots"
,
timeIntervalHelper
.
sizeReduced
());
st
.
add
(
"numTimeSlots"
,
timeIntervalHelper
.
getNumberOfTimeSlots
());
st
.
add
(
"goalStates"
,
query
.
goalRoles
);
st
.
add
(
"uzunRules"
,
newRules
);
convertedStr
=
st
.
render
();
...
...
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