sota
Class GlobalIScheme
java.lang.Object
sota.IScheme
sota.GlobalIScheme
- All Implemented Interfaces:
- java.lang.Comparable<IScheme>
public class GlobalIScheme
- extends IScheme
This class provides a global instrumentation scheme.
Following levels may be chosen:
- level 1: instrument statements to enable control flow coverage tests (FEEC, C0, C1, MBI, BI),
- level 2: additionally instrument conditions to enable condition coverage tests (C2, MMCC, MCDC, C3),
- level 3: complete instrumentation of sourcecode, the execution of every statement is logged.
Constructor Summary |
GlobalIScheme(java.lang.String name,
int level)
Instantiates a new GlobalIScheme with the given name and level. |
Methods inherited from class sota.IScheme |
addInstrumentationLevel, compareTo, getDescription, getInstrumentationIds, getLevelMap, getName, hasInstrumentationLevel, removeInstrumentierungsLevel, setDescription, setLevelMap, setName |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlobalIScheme
public GlobalIScheme(java.lang.String name,
int level)
- Instantiates a new GlobalIScheme with the given name and level.
- Parameters:
name
- the namelevel
- the global instrumentation level (1-3)
getInstrumentationLevel
public int getInstrumentationLevel()
- Returns the global instrumentation level.
- Returns:
- the global instrumentation level
getInstrumentationLevel
public int getInstrumentationLevel(java.lang.String idString)
- Returns the instrumentation level for an ID.
- Overrides:
getInstrumentationLevel
in class IScheme
- Parameters:
idString
- the ID of the file, class or function
- Returns:
- the global instrumentation level