sofya.ed.structural
Interface BranchInstrumentationStrategy

All Known Implementing Classes:
BranchCoverageProcessingStrategy, BranchSequenceProcessingStrategy, JUnitBranchCoverageProcessingStrategy, JUnitBranchSequenceProcessingStrategy

public interface BranchInstrumentationStrategy

Specifies that a component uses or depends on a branch instrumentation strategy. Defines methods to specify which types of branches are selected for instrumentation or observation.

Version:
03/16/2006
Author:
Alex Kinneer

Method Summary
 boolean areCallBranchesActive()
          Reports whether call branches are selected.
 boolean areEntryBranchesActive()
          Reports whether entry branches are selected.
 boolean areIfBranchesActive()
          Reports whether if branches are selected.
 boolean areSummaryBranchesActive()
          Reports whether summary branches are selected.
 boolean areSwitchBranchesActive()
          Reports whether switch branches are selected.
 boolean areThrowsBranchesActive()
          Reports whether throws branches are selected.
 int getTypeFlags()
          Gets the bitmask corresponding to the types of branches currently selected.
 void setCallBranchesActive(boolean enable)
          Sets whether call branches are selected.
 void setEntryBranchesActive(boolean enable)
          Sets whether entry branches are selected.
 void setIfBranchesActive(boolean enable)
          Sets whether if branches are selected.
 void setSummaryBranchesActive(boolean enable)
          Sets whether summary branches are selected.
 void setSwitchBranchesActive(boolean enable)
          Sets whether switch branches are selected.
 void setThrowsBranchesActive(boolean enable)
          Sets whether throws branches are selected.
 

Method Detail

areIfBranchesActive

boolean areIfBranchesActive()
Reports whether if branches are selected.

Returns:
true if if branches are selected, false otherwise.

setIfBranchesActive

void setIfBranchesActive(boolean enable)
Sets whether if branches are selected.

Parameters:
enable - true to select if branches, false to ignore.

areSwitchBranchesActive

boolean areSwitchBranchesActive()
Reports whether switch branches are selected.

Returns:
true if switch branches are selected, false otherwise.

setSwitchBranchesActive

void setSwitchBranchesActive(boolean enable)
Sets whether switch branches are selected.

Parameters:
enable - true to select switch branches, false to ignore.

areThrowsBranchesActive

boolean areThrowsBranchesActive()
Reports whether throws branches are selected.

Returns:
true if throws branches are selected, false otherwise.

setThrowsBranchesActive

void setThrowsBranchesActive(boolean enable)
Sets whether throws branches are selected.

Parameters:
enable - true to select throws branches, false to ignore.

areCallBranchesActive

boolean areCallBranchesActive()
Reports whether call branches are selected.

Returns:
true if call branches are selected, false otherwise.

setCallBranchesActive

void setCallBranchesActive(boolean enable)
Sets whether call branches are selected.

Parameters:
enable - true to select call branches, false to ignore.

areEntryBranchesActive

boolean areEntryBranchesActive()
Reports whether entry branches are selected.

Returns:
true if entry branches are selected, false otherwise.

setEntryBranchesActive

void setEntryBranchesActive(boolean enable)
Sets whether entry branches are selected.

Parameters:
enable - true to select entry branches, false to ignore.

areSummaryBranchesActive

boolean areSummaryBranchesActive()
Reports whether summary branches are selected.

Returns:
true if summary branches are selected, false otherwise.

setSummaryBranchesActive

void setSummaryBranchesActive(boolean enable)
Sets whether summary branches are selected.

Parameters:
enable - true to select summary branches, false to ignore.

getTypeFlags

int getTypeFlags()
Gets the bitmask corresponding to the types of branches currently selected.

Used for communicating configuration information to certain other components. To be phased out at a future date.

Returns:
The bitmask indicating which branch types have been selected in this configuration.