org.topcased.traceability.hmi.util
Class ModelHelper
java.lang.Object
org.topcased.traceability.hmi.util.ModelHelper
public class ModelHelper
- extends java.lang.Object
Created on 13 f�vr. 07
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelHelper
public ModelHelper()
getAllCoverLinksUnder
public static java.util.List<CoverLink> getAllCoverLinksUnder(HierarchicalElement element)
- Build a list that contains all cover links under a given element
- Parameters:
element
-
- Returns:
- the list of cover link
getAllIncomingCoverLinksUnder
public static java.util.List<CoverLink> getAllIncomingCoverLinksUnder(Requirement element)
getRecursiveCoveringRequirements
public static java.util.List<Requirement> getRecursiveCoveringRequirements(Requirement requirement)
getRecursiveCoveredRequirements
public static java.util.List<HierarchicalElement> getRecursiveCoveredRequirements(Requirement requirement)
getRequirements
public static java.util.List<Requirement> getRequirements(Section section)
updateTreeWithIncomingCoverLinks
public static void updateTreeWithIncomingCoverLinks(Tree tree,
Requirement requirement)
getCoverageResult
public static java.lang.Float getCoverageResult(CoverPoint coverPoint)
getNbRequirements
public static int getNbRequirements(Document coveredDocument)
getCoverageResult
public static float getCoverageResult(Document covered,
Document covering)
getCoverageResult
public static float getCoverageResult(Document covered,
CoveringDocument covering)
getElementFromRule
public static Element getElementFromRule(RuleInstance rule)
- Extract the requirement associated to a rule,
browsing up the rule structure if required.
- Parameters:
rule
-
- Returns:
getRequirements
public static java.util.List<Requirement> getRequirements(Project project)
getRequirementText
public static java.lang.String getRequirementText(Requirement r)
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.