Package cruise.umple.nusmv
Class NuSMVCoordinator
java.lang.Object
cruise.umple.nusmv.NuSMVCoordinator
public class NuSMVCoordinator
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NuSMVCoordinator()
-
Method Summary
Modifier and Type Method Description java.lang.StringBuilder
_commentModel(java.lang.Integer numSpaces, java.lang.StringBuilder sb, UmpleModel model)
void
analyzeModel(UmpleModel model)
work on this later for option argument - (currently being set - 0)java.util.Stack<State>
ancestorStack(State st)
This adds expression to activate a composite start statevoid
appendConstraint(java.lang.StringBuilder output, ModuleElement property)
Generates models from an Umple model for analysis purposestatic java.lang.String
changeNameCase(java.lang.String str, int index)
This changes the first caharacter of a given string.java.lang.String
commentModel(UmpleModel model)
java.lang.String
createFile(UmpleModel model, java.lang.StringBuilder sb, java.lang.String addOn, java.lang.String extension)
the file with the input name on the specified path, and extension is created whenever this method returns a string (i.e.void
delete()
void
deleteAnalysisFiles(UmpleModel model)
deletes all files used for analysis under consideration...boolean
deleteFile(java.lang.String modelFileName)
the file with the input name on the specified path, and extension is deleted whenever this method returns true.java.lang.StringBuilder
generateModel(UmpleModel uModel, java.util.List<NuSMVModule> capsules, java.util.List<CTLSpecification> reachability, java.util.List<ModuleElement> properties, java.util.List<InvarConstraint> nonDeterminism, int option)
Generates a String builder for the modeling elementsjava.util.List<NuSMVModule>
generateModuleForNestedStateMachine(StateMachine sm, UmpleClass uClass)
java.util.List<NuSMVModule>
generateModuleForSimpleStateMachine(StateMachine sm, UmpleClass uClass)
This generates modules generated from a simple state machine including its mainNuSMVModule
generateModuleForSubstate(StateMachine sm, StateMachine root)
This generates a module for a substate given the state machine of the state and the root state machinejava.lang.StringBuilder
generateModules(UmpleModel uModel, boolean temp, int option)
Generates modules from an Umple modeljava.lang.StringBuilder
generateModules(UmpleModel uModel, int option)
Generates modules from an Umple modeljava.util.List<StateMachine>
generateStateMachineList(StateMachine root)
Created to generate the list of state machinejava.lang.StringBuilder
generateSystem(java.util.List<NuSMVModule> modules)
java.util.Set<java.lang.String>
getAllEventNames(StateMachine sm)
we exterminate uniqueness of auto-transitionsjava.util.List<Transition>
getAllTransitionsForOrthogonalState(State st)
Harvesting transitions for any given orthogonal state or regionjava.util.List<State>
getCompositeStates(StateMachine sm)
java.util.List<StateMachine>
getEmbeddedStateMachines(State state)
Computes the list of embeddedStateMachines of a composite statejava.lang.String
getExpression(java.util.ArrayDeque<java.lang.String> nodes)
int
getObjectIdentity(StateMachine sm, java.lang.Object obj)
<E> boolean
has(java.util.Collection<E> objectList, E whatToFind)
boolean
isIgnorablePair(Transition first, Transition second, State supremum)
This checks whether the input transitions are ignorable for non-determinismboolean
isNested(StateMachine sm)
boolean
isSourceEmbedded(Transition first, Transition second)
Tracks non-determinism whenever one of the pairable transitions incidents on the supremum and the other incidents on an embedded statevoid
prepareAnalysisFiles(UmpleModel model, java.lang.StringBuilder output, ModuleElement element)
prepares all files needed for analysis under consideration...void
printList(java.util.List<Transition> input, StateMachine root)
java.lang.String
toString()
-
Field Details
-
NL
public static final java.lang.String NL -
TEXT_0
public static final java.lang.String TEXT_0- See Also:
- Constant Field Values
-
TEXT_1
public static final java.lang.String TEXT_1- See Also:
- Constant Field Values
-
TEXT_2
public static final java.lang.String TEXT_2
-
-
Constructor Details
-
NuSMVCoordinator
public NuSMVCoordinator()
-
-
Method Details
-
delete
public void delete() -
changeNameCase
public static java.lang.String changeNameCase(java.lang.String str, int index)This changes the first caharacter of a given string.- Parameters:
str
- the given string.index
- value 0 - Lowercase, 1 - Uppercase, Otherwise no change- Returns:
- the resulting string value.
-
isNested
-
generateSystem
-
generateStateMachineList
Created to generate the list of state machine -
getEmbeddedStateMachines
Computes the list of embeddedStateMachines of a composite state -
getCompositeStates
-
generateModel
public java.lang.StringBuilder generateModel(UmpleModel uModel, java.util.List<NuSMVModule> capsules, java.util.List<CTLSpecification> reachability, java.util.List<ModuleElement> properties, java.util.List<InvarConstraint> nonDeterminism, int option)Generates a String builder for the modeling elements -
createFile
public java.lang.String createFile(UmpleModel model, java.lang.StringBuilder sb, java.lang.String addOn, java.lang.String extension)the file with the input name on the specified path, and extension is created whenever this method returns a string (i.e. absolute file name). -
deleteFile
public boolean deleteFile(java.lang.String modelFileName)the file with the input name on the specified path, and extension is deleted whenever this method returns true. -
prepareAnalysisFiles
public void prepareAnalysisFiles(UmpleModel model, java.lang.StringBuilder output, ModuleElement element)prepares all files needed for analysis under consideration... -
analyzeModel
work on this later for option argument - (currently being set - 0) -
deleteAnalysisFiles
deletes all files used for analysis under consideration... -
appendConstraint
Generates models from an Umple model for analysis purpose -
generateModules
Generates modules from an Umple model -
generateModules
Generates modules from an Umple model -
generateModuleForNestedStateMachine
public java.util.List<NuSMVModule> generateModuleForNestedStateMachine(StateMachine sm, UmpleClass uClass) -
generateModuleForSimpleStateMachine
public java.util.List<NuSMVModule> generateModuleForSimpleStateMachine(StateMachine sm, UmpleClass uClass)This generates modules generated from a simple state machine including its main -
generateModuleForSubstate
This generates a module for a substate given the state machine of the state and the root state machine -
getObjectIdentity
-
isIgnorablePair
This checks whether the input transitions are ignorable for non-determinism -
isSourceEmbedded
Tracks non-determinism whenever one of the pairable transitions incidents on the supremum and the other incidents on an embedded state -
getAllTransitionsForOrthogonalState
Harvesting transitions for any given orthogonal state or region -
printList
-
ancestorStack
This adds expression to activate a composite start state -
getAllEventNames
we exterminate uniqueness of auto-transitions -
getExpression
public java.lang.String getExpression(java.util.ArrayDeque<java.lang.String> nodes) -
_commentModel
public java.lang.StringBuilder _commentModel(java.lang.Integer numSpaces, java.lang.StringBuilder sb, UmpleModel model) -
commentModel
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
has
public <E> boolean has(java.util.Collection<E> objectList, E whatToFind)
-