com.x8ing.mc.bp
Class BusinessContext

java.lang.Object
  extended by com.x8ing.mc.bp.BusinessContext
All Implemented Interfaces:
StateContext

public class BusinessContext
extends java.lang.Object
implements StateContext

Author:
Patrick Heusser

Constructor Summary
BusinessContext(Configuration configuration)
           
 
Method Summary
 double calculateTotalProcessLossOfAllBugsEverFound()
           
 double calculateTotalProcessLossOfAllBugsNotDeployedYet()
           
 BalanceSheet getBalanceSheet()
           
 BugList getBugs()
           
 Configuration getConfiguration()
           
 java.util.Calendar getCurrentDate()
           
 double getCurrentProcessGain()
          what is the current value of the process.
 LogBook getLogBook()
           
 double getProcessLossCausedByBugsCurrentValue()
           
 java.util.List getQueuedBugs()
           
 boolean isDeployedWithSucess()
           
 boolean isDevelopProcessBusy()
           
 boolean isNoMoreDiscoveringOfBugs()
           
 boolean isProductionSystemRunning()
           
 void setBugs(BugList bugs)
           
 void setCurrentDate(java.util.GregorianCalendar currentDate)
           
 void setDeployedWithSucess(boolean deployedWithSucess)
           
 void setDevelopProcessBusy(boolean developProcessBusy)
           
 void setNoMoreDiscoveringOfBugs(boolean noMoreDiscoveringOfBugs)
           
 void setProcessLossCausedByBugsCurrentValue(double processLossCausedByBugsCurrentValue)
           
 void setProductionSystemRunning(boolean productionSystemRunning)
           
 void setQueuedBugs(java.util.List queuedBugs)
           
 void transferQueuedBugsToDevelopBugList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessContext

public BusinessContext(Configuration configuration)
Method Detail

transferQueuedBugsToDevelopBugList

public void transferQueuedBugsToDevelopBugList()

calculateTotalProcessLossOfAllBugsEverFound

public double calculateTotalProcessLossOfAllBugsEverFound()

calculateTotalProcessLossOfAllBugsNotDeployedYet

public double calculateTotalProcessLossOfAllBugsNotDeployedYet()
Returns:
the total process losscaused by all bugs that could be fixed but are not yet.

getCurrentProcessGain

public double getCurrentProcessGain()
what is the current value of the process.


getBalanceSheet

public BalanceSheet getBalanceSheet()
Returns:
Returns the balanceSheet.

getCurrentDate

public java.util.Calendar getCurrentDate()
Returns:
Returns the currentDate.

setCurrentDate

public void setCurrentDate(java.util.GregorianCalendar currentDate)
Parameters:
currentDate - The currentDate to set.

isProductionSystemRunning

public boolean isProductionSystemRunning()
Returns:
Returns the productionSystemRunning.

getLogBook

public LogBook getLogBook()
Returns:
Returns the logBook.

setProductionSystemRunning

public void setProductionSystemRunning(boolean productionSystemRunning)

getBugs

public BugList getBugs()

setBugs

public void setBugs(BugList bugs)

isDeployedWithSucess

public boolean isDeployedWithSucess()

setDeployedWithSucess

public void setDeployedWithSucess(boolean deployedWithSucess)

isDevelopProcessBusy

public boolean isDevelopProcessBusy()

setDevelopProcessBusy

public void setDevelopProcessBusy(boolean developProcessBusy)

getQueuedBugs

public java.util.List getQueuedBugs()

setQueuedBugs

public void setQueuedBugs(java.util.List queuedBugs)

getProcessLossCausedByBugsCurrentValue

public double getProcessLossCausedByBugsCurrentValue()

setProcessLossCausedByBugsCurrentValue

public void setProcessLossCausedByBugsCurrentValue(double processLossCausedByBugsCurrentValue)

getConfiguration

public Configuration getConfiguration()

isNoMoreDiscoveringOfBugs

public boolean isNoMoreDiscoveringOfBugs()

setNoMoreDiscoveringOfBugs

public void setNoMoreDiscoveringOfBugs(boolean noMoreDiscoveringOfBugs)


by Patrick Heusser