public class HlddSmvVisitor extends HlddEmptyVisitor
ModelVisitor.Status
Modifier and Type | Field and Description |
---|---|
protected Module |
currentModule |
protected java.util.Map<ru.ispras.fortress.expression.NodeVariable,Declaration> |
currentPhaseVars |
Constructor and Description |
---|
HlddSmvVisitor(java.lang.String fileName)
Constructs a new visitor and creates a new *.smv file.
|
Modifier and Type | Method and Description |
---|---|
protected void |
append(java.lang.String string)
Appends the specified string to the output file.
|
protected void |
appendLine()
Appends an empty line to the output file.
|
protected void |
appendLine(java.lang.String line)
Appends the specified line to the output file.
|
protected java.lang.String |
getExprDescription(ru.ispras.fortress.expression.Node expression)
Returns the expression description string.
|
protected java.lang.String |
getExprDescription(ru.ispras.fortress.expression.Node expression,
boolean standardize) |
protected SmvExprPrinter |
getExprPrinter()
Returns the current SMV expression printer.
|
void |
onAssignment(HlddTerminalNode node)
Visits an assignment node.
|
void |
onConditionBegin(HlddConditionNode node)
Starts visiting a condition node.
|
void |
onConditionEnd(HlddConditionNode node)
Finishes visiting a condition node.
|
void |
onEdgeBegin(HlddEdge node)
Starts visiting a value node.
|
void |
onEdgeEnd(HlddEdge node)
Finishes visiting a value node.
|
void |
onHlddBegin(Hldd hldd)
Starts visiting
Hldd . |
void |
onHlddEnd(Hldd hldd)
Finishes visiting
Hldd . |
void |
onModelBegin(Model model)
Starts visiting
Model object. |
void |
onModelEnd(Model model)
Finishes visiting
Model object. |
void |
onModuleBegin(Module hlddModule)
Starts visiting
Module node. |
void |
onModuleEnd(Module module)
Finishes visiting
Module node. |
void |
onProcessBegin(ModuleProcess process)
Starts visiting
ModuleProcess node. |
void |
onProcessEnd(ModuleProcess process)
Finishes visiting
ModuleProcess node. |
onRootBegin, onRootEnd
getStatus, onRootBegin, onRootEnd, onStatementBegin, onStatementEnd
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStatus, onRootBegin, onRootEnd, onStatementBegin, onStatementEnd
protected java.util.Map<ru.ispras.fortress.expression.NodeVariable,Declaration> currentPhaseVars
protected Module currentModule
public HlddSmvVisitor(java.lang.String fileName)
fileName
- - the specified *.smv file name.protected SmvExprPrinter getExprPrinter()
protected void append(java.lang.String string)
string
- The string to be added to the output file.protected void appendLine(java.lang.String line)
line
- The line to be added to the output file.protected void appendLine()
protected java.lang.String getExprDescription(ru.ispras.fortress.expression.Node expression)
expression
- The expression to be represented in string format.protected java.lang.String getExprDescription(ru.ispras.fortress.expression.Node expression, boolean standardize)
public void onModelBegin(Model model)
ModelVisitor
Model
object.onModelBegin
in interface ModelVisitor
onModelBegin
in class ModelEmptyVisitor
model
- The model to be visited.public void onModelEnd(Model model)
ModelVisitor
Model
object.onModelEnd
in interface ModelVisitor
onModelEnd
in class ModelEmptyVisitor
model
- The model to be visited.public void onModuleBegin(Module hlddModule)
ModelVisitor
Module
node.onModuleBegin
in interface ModelVisitor
onModuleBegin
in class ModelEmptyVisitor
hlddModule
- Module node to be visited.public void onModuleEnd(Module module)
ModelVisitor
Module
node.onModuleEnd
in interface ModelVisitor
onModuleEnd
in class ModelEmptyVisitor
module
- Module node to be visited.public void onProcessBegin(ModuleProcess process)
ModelVisitor
ModuleProcess
node.onProcessBegin
in interface ModelVisitor
onProcessBegin
in class ModelEmptyVisitor
process
- Process node to be visited.public void onProcessEnd(ModuleProcess process)
ModelVisitor
ModuleProcess
node.onProcessEnd
in interface ModelVisitor
onProcessEnd
in class ModelEmptyVisitor
process
- Process node to be visited.public void onHlddBegin(Hldd hldd)
HlddVisitor
Hldd
.onHlddBegin
in interface HlddVisitor
onHlddBegin
in class HlddEmptyVisitor
hldd
- - the specified hldd.public void onHlddEnd(Hldd hldd)
HlddVisitor
Hldd
.onHlddEnd
in interface HlddVisitor
onHlddEnd
in class HlddEmptyVisitor
hldd
- - the specified hldd.public void onConditionBegin(HlddConditionNode node)
HlddVisitor
onConditionBegin
in interface HlddVisitor
onConditionBegin
in class HlddEmptyVisitor
node
- - the specified HlddConditionNode
.public void onConditionEnd(HlddConditionNode node)
HlddVisitor
onConditionEnd
in interface HlddVisitor
onConditionEnd
in class HlddEmptyVisitor
node
- - the specified HlddConditionNode
.public void onEdgeBegin(HlddEdge node)
HlddVisitor
onEdgeBegin
in interface HlddVisitor
onEdgeBegin
in class HlddEmptyVisitor
node
- - the specified HlddEdge
.public void onEdgeEnd(HlddEdge node)
HlddVisitor
onEdgeEnd
in interface HlddVisitor
onEdgeEnd
in class HlddEmptyVisitor
node
- - the specified HlddEdge
.public void onAssignment(HlddTerminalNode node)
HlddVisitor
onAssignment
in interface HlddVisitor
onAssignment
in class HlddEmptyVisitor
node
- - the specified HlddTerminalNode
.