|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tigris.mbt.Util
public class Util
This class has some utility functionality used by org.tigris.mbt
The functionality is:
* Getting names with extra info for vertices and edges
* Setting up the logger for classes
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static void |
AbortIf(boolean bool,
String message)
|
static DirectedSparseEdge |
addEdgeToGraph(SparseGraph graph,
DirectedSparseVertex vertexFrom,
DirectedSparseVertex vertexTo,
String strLabel,
String strParameter,
String strGuard,
String strAction)
|
static DirectedSparseVertex |
addVertexToGraph(SparseGraph graph,
String strLabel)
|
static String |
getCompleteEdgeName(DirectedSparseEdge edge)
Retries information regarding an edge, and returns it as a String. |
static String |
getCompleteVertexName(DirectedSparseVertex vertex)
Retries information regarding a vertex, and returns it as a String. |
static StopCondition |
getCondition(int conditionType,
String conditionValue)
|
static PathGenerator |
getGenerator(int generatorType)
|
static char |
getInput()
|
static ModelBasedTesting |
loadMbtFromXml(String fileName)
|
static String |
readFile(String fileName)
|
static boolean |
RunTest(Object ref,
Logger log,
String method)
Deprecated. use execute from ModelBasedTesting instead. |
static Logger |
setupLogger(Class classParam)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static String getCompleteEdgeName(DirectedSparseEdge edge)
edge - The edge about which information shall be retrieved.
'<EDGE LABEL>', INDEX=x ('<SOURCE VERTEX LABEL>', INDEX=y -> '<DEST VERTEX LABEL>', INDEX=z)
Where x, y and n are the unique indexes for the edge, the source vertex and the destination vertex.public static String getCompleteVertexName(DirectedSparseVertex vertex)
vertex - The vertex about which information shall be retrieved.
'<VERTEX LABEL>', INDEX=nWhere is the unique index for the vertex.
public static void AbortIf(boolean bool,
String message)
public static Logger setupLogger(Class classParam)
public static DirectedSparseVertex addVertexToGraph(SparseGraph graph,
String strLabel)
public static DirectedSparseEdge addEdgeToGraph(SparseGraph graph,
DirectedSparseVertex vertexFrom,
DirectedSparseVertex vertexTo,
String strLabel,
String strParameter,
String strGuard,
String strAction)
public static boolean RunTest(Object ref,
Logger log,
String method)
ModelBasedTesting instead.
public static StopCondition getCondition(int conditionType,
String conditionValue)
public static PathGenerator getGenerator(int generatorType)
public static ModelBasedTesting loadMbtFromXml(String fileName)
fileName - The XML settings filepublic static String readFile(String fileName)
public static char getInput()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||