| java.lang.Object salomeTMF_plug.requirements.data.GenTestTools
GenTestTools | public class GenTestTools (Code) | | |
Method Summary | |
static void | addReqBijectiveCovered(Requirement pTempReq, String testName) | static void | addSimleDataToDynamicTestTree(SimpleData data) | static void | addTestBijectiveCovered(Requirement pTempReq, String testName) | static SimpleDynamicTestTree | createCopyOfTestTree(DynamicTree _pDynamicTree) | static Requirement | findInLeaf(Requirement pReq, SimpleData pSimpleData, String prefix, int type) | static Requirement | findInLeafFamilyByName(Requirement pReq, String name, String prefix) | static Requirement | findReqForFamily(SimpleData pSimpleData) | static Requirement | findReqForTestList(SimpleData pSimpleData) | public static void | getBijectiveSimpleDataTree(DefaultMutableTreeNode pTempNode, SimpleDynamicTestTree dynTestTree) | static DefaultMutableTreeNode | getCopyNode(DefaultMutableTreeNode node) | static Family | getDefaultFamily() | static TestList | getDefaultTestList(Family pFamily) | static int | getLevel(Requirement pReq) | static SimpleData | getOrCreateFamily(Requirement pReq, boolean insertInMap, boolean create) | static SimpleData | getOrCreateSuite(Requirement pReq, Family pFamily, boolean insertInMap, boolean create) | static SimpleData | getOrCreateTest(Requirement pReq, Family pFamily, TestList pTestList, boolean insertInMap, String prefix, boolean create) Get the test if exists or creates it if not. | static String | getPrefix(Requirement pReq, int level, Vector parent) | static Vector | getPrefixListForTest(SimpleData pSimpleData, String defaultPrefix) | public static Requirement | getRequirement(SimpleData pSimpleData) | public static SimpleData | getSimpleData(Requirement pReq, Vector path, boolean create) | static void | initReqLink() | static void | initReqWithTestLink(DefaultTreeModel treeModel, DefaultMutableTreeNode pTempNode) | public static void | initTools(RequirementTree _reqTree, DynamicTree _pDynamicTree) | public static boolean | isReqBijectiveCovered(Requirement pTempReq, String testName) | public static boolean | isReqDefaultCovered(Requirement pTempReq, String testName) | static void | removeNotDefaultReqBijectiveCovered(String testName) | static void | removeReqBijectiveCovered(Requirement pTempReq, String testName) | public static boolean | removeReqBijectiveLinked(DefaultTreeModel treeModel, DefaultMutableTreeNode pTempNode) remove link from requirement if at least one test linked to it contains the same name
of the requirement. | public static void | removeSimpleDataToDynamicTestTree(SimpleData data) | static void | removeTestBijectiveCovered(Requirement pTempReq, String testName) |
REQ_FAMILY | static int REQ_FAMILY(Code) | | |
REQ_LEAF | static int REQ_LEAF(Code) | | |
addReqBijectiveCovered | static void addReqBijectiveCovered(Requirement pTempReq, String testName)(Code) | | Parameters: pTempReq - a requirement leaf Parameters: testName - name of the test to add |
addSimleDataToDynamicTestTree | static void addSimleDataToDynamicTestTree(SimpleData data)(Code) | | Add the simpleData to the pCopyDynamicTestTree
Parameters: data - simpleData to add |
addTestBijectiveCovered | static void addTestBijectiveCovered(Requirement pTempReq, String testName)(Code) | | Add test link to the requirement
Parameters: pTempReq - a requirement leaf Parameters: testName - name of the test to add |
findInLeaf | static Requirement findInLeaf(Requirement pReq, SimpleData pSimpleData, String prefix, int type)(Code) | | Find a requirement from a test
Parameters: pReq - the requirement root to start the research Parameters: pSimpleData - the test to find Parameters: prefix - prefix corresponding to the test Parameters: type - REQ_FAMILY=0 or REQ_LEAF = 1 the found requirement or null |
findInLeafFamilyByName | static Requirement findInLeafFamilyByName(Requirement pReq, String name, String prefix)(Code) | | Find a requirement from a Family requirement
Parameters: pReq - the selected requirement Parameters: name - of the requirement to find Parameters: prefix - prefix corresponding to the test the found requirement or null |
findReqForFamily | static Requirement findReqForFamily(SimpleData pSimpleData)(Code) | | Find a requirement from the Family
Parameters: pSimpleData - (Family) the requirement corresponding to the Family name |
findReqForTestList | static Requirement findReqForTestList(SimpleData pSimpleData)(Code) | | Find a requirement from the TestList
Parameters: pSimpleData - (TestList) the requirement corresponding to the TestList Name |
getBijectiveSimpleDataTree | public static void getBijectiveSimpleDataTree(DefaultMutableTreeNode pTempNode, SimpleDynamicTestTree dynTestTree)(Code) | | Recursive procedure that builds the test tree by parsing the requirement tree
Parameters: pTempNode - the currentNode Parameters: pRequirementTree - the requirement tree |
getDefaultFamily | static Family getDefaultFamily()(Code) | | the default family |
getDefaultTestList | static TestList getDefaultTestList(Family pFamily)(Code) | | Parameters: pFamily - the default TestList and add testList to the family |
getLevel | static int getLevel(Requirement pReq)(Code) | | get Requirement level
Parameters: pReq - the Requirement selected Parameters: pRequirementTree - the current Requiremenet tree the Requirment level |
getOrCreateFamily | static SimpleData getOrCreateFamily(Requirement pReq, boolean insertInMap, boolean create)(Code) | | get the family of the corresponding selected requirement
Parameters: pReq - the selected requirement Parameters: insertInMap - keep family Parameters: create - force to create a new family get the family if found or if create it returns a new family corresponding to the requirement |
getOrCreateSuite | static SimpleData getOrCreateSuite(Requirement pReq, Family pFamily, boolean insertInMap, boolean create)(Code) | | get the testList of the corresponding selected requirement
Parameters: pReq - the selected requirement Parameters: pFamily - the family Parameters: insertInMap - Parameters: create - force to create a new testList get the family if found or if create it returns a new family corresponding to the requirement |
getOrCreateTest | static SimpleData getOrCreateTest(Requirement pReq, Family pFamily, TestList pTestList, boolean insertInMap, String prefix, boolean create)(Code) | | Get the test if exists or creates it if not.
Parameters: pReq - the requirement corresponding to the test Parameters: pFamily - the family Parameters: pTestList - the testList Parameters: insertInMap - using a cache or not Parameters: prefix - prefix used Parameters: create - force create if not exists the corresponding test |
getPrefix | static String getPrefix(Requirement pReq, int level, Vector parent)(Code) | | Get prefix corresponding to the requirement
Parameters: pReq - the selected requirement Parameters: level - the level Parameters: parent - List of requirement parents |
getPrefixListForTest | static Vector getPrefixListForTest(SimpleData pSimpleData, String defaultPrefix)(Code) | | Find a prefix List from the Test
Parameters: pSimpleData - (Test) Parameters: defaultPrefix - default prefix used for the simpleData the prefix List in a String Vector |
getRequirement | public static Requirement getRequirement(SimpleData pSimpleData)(Code) | | Parameters: pSimpleData - (family,testList,test) the associated requirement to the simpleData |
getSimpleData | public static SimpleData getSimpleData(Requirement pReq, Vector path, boolean create)(Code) | | get the simpledata corresponding to the requirement
Parameters: pReq - the selected requirement Parameters: path - path from root to the simpleData Parameters: create - force to create simpleData if not found the simpledata found or if create true it returns a new simpledata corresponding to the requirement |
initReqLink | static void initReqLink()(Code) | | Build the requirement tree without requirements linked to test which checks the bijection
|
initReqWithTestLink | static void initReqWithTestLink(DefaultTreeModel treeModel, DefaultMutableTreeNode pTempNode)(Code) | | Init requirements by adding those which are linked to test
Parameters: treeModel - the requirement tree model Parameters: pTempNode - the root node |
isReqBijectiveCovered | public static boolean isReqBijectiveCovered(Requirement pTempReq, String testName)(Code) | | Parameters: pTempReq - a requirement leaf Parameters: testName - name of the test Return true if Requirement is linked in model with testName |
isReqDefaultCovered | public static boolean isReqDefaultCovered(Requirement pTempReq, String testName)(Code) | | Parameters: pTempReq - a requirement leaf Parameters: testName - name of the test true if Requirement pTempReq is linked in DB with testName |
removeNotDefaultReqBijectiveCovered | static void removeNotDefaultReqBijectiveCovered(String testName)(Code) | | Remove test link to the requirement
Parameters: testName - name of the test to unlink |
removeReqBijectiveCovered | static void removeReqBijectiveCovered(Requirement pTempReq, String testName)(Code) | | Remove link from requirement
Parameters: pTempReq - the selected requirement Parameters: testName - the name of the test |
removeReqBijectiveLinked | public static boolean removeReqBijectiveLinked(DefaultTreeModel treeModel, DefaultMutableTreeNode pTempNode)(Code) | | remove link from requirement if at least one test linked to it contains the same name
of the requirement. It removes also requirement leaf from the available requirement tree.
Parameters: treeModel - requirement tree model Parameters: pTempNode - requirement node to start recursive function true if one test have the same |
removeSimpleDataToDynamicTestTree | public static void removeSimpleDataToDynamicTestTree(SimpleData data)(Code) | | Remove the simpleData to the pCopyDynamicTestTree
Parameters: data - simpleData to remove |
removeTestBijectiveCovered | static void removeTestBijectiveCovered(Requirement pTempReq, String testName)(Code) | | Remove link from test
Parameters: pTempReq - a requirement leaf Parameters: testName - name of the test to unlink |
|
|