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
dc60d398
Commit
dc60d398
authored
Nov 21, 2016
by
Jonathan Shahen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding comments to the ConvertTo class and the subclass ConverToNuSMV
parent
12b7e0ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
src/mohawk/converter/to/ConvertTo.java
src/mohawk/converter/to/ConvertTo.java
+13
-0
src/mohawk/converter/to/nusmv/ConvertToNuSMV.java
src/mohawk/converter/to/nusmv/ConvertToNuSMV.java
+10
-0
No files found.
src/mohawk/converter/to/ConvertTo.java
View file @
dc60d398
...
@@ -25,10 +25,23 @@ public class ConvertTo {
...
@@ -25,10 +25,23 @@ public class ConvertTo {
this
.
timing
=
timing
;
this
.
timing
=
timing
;
}
}
/**
* Takes in a Mohawk+T Policy and converts it to an equivalent problem instance. Has the ability to then write that
* instance out to a file, when {@code writeToFile} is TRUE.
* @param m Input Mohawk+T policy to convert
* @param f can be <b>NULL</b> if {@code writeToFile} is FALSE
* @param writeToFile TRUE to write the instance out to the file {@code f}
* @return the equivalent instance string
*/
public
String
convert
(
MohawkT
m
,
File
f
,
Boolean
writeToFile
)
{
public
String
convert
(
MohawkT
m
,
File
f
,
Boolean
writeToFile
)
{
return
null
;
return
null
;
}
}
/**
* Returns the file extension that {@link ConvertTo#convert(MohawkT, File, Boolean)} will append to the file when
* writing out
* @return
*/
public
String
getFileExtenstion
()
{
public
String
getFileExtenstion
()
{
return
null
;
return
null
;
}
}
...
...
src/mohawk/converter/to/nusmv/ConvertToNuSMV.java
View file @
dc60d398
...
@@ -21,11 +21,21 @@ public class ConvertToNuSMV extends ConvertTo {
...
@@ -21,11 +21,21 @@ public class ConvertToNuSMV extends ConvertTo {
tPrefix
=
"ConvertToNuSMV"
;
tPrefix
=
"ConvertToNuSMV"
;
}
}
public
ConvertToNuSMV
(
MohawkTiming
timing
,
String
timerPrefix
)
{
super
(
timing
);
tPrefix
=
timerPrefix
;
}
@Override
@Override
public
String
getFileExtenstion
()
{
public
String
getFileExtenstion
()
{
return
".smv"
;
return
".smv"
;
}
}
/**
* Converts Mohawk+T policies to equivalent NuSMV Model Checker instances
* <br/><br/>
* {@inheritDoc}
*/
@Override
@Override
public
String
convert
(
MohawkT
m
,
File
file
,
Boolean
writeToFile
)
{
public
String
convert
(
MohawkT
m
,
File
file
,
Boolean
writeToFile
)
{
try
{
try
{
...
...
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