de.upb.swtpra05.group03.shuttle
Interface RiskControlInterface

All Known Implementing Classes:
RiskControl

public interface RiskControlInterface

Interface of a risk control.

Version:
$Revision: 1.3 $

Field Summary
static int ERROR
          Indiacates that an error occured.
static int HIGH_RISK
          high risk level
static int LOW_RISK
          low risk level
static int MEDIUM_RISK
          medium risk level
 
Method Summary
 float calculateRisk(ExtendedOrder eo)
          Calculates the risk addition of an order according to its riskiness.
 int getCurrentRiskLevel()
          Returns the current risk level.
 

Field Detail

LOW_RISK

public static final int LOW_RISK
low risk level

See Also:
Constant Field Values

MEDIUM_RISK

public static final int MEDIUM_RISK
medium risk level

See Also:
Constant Field Values

HIGH_RISK

public static final int HIGH_RISK
high risk level

See Also:
Constant Field Values

ERROR

public static final int ERROR
Indiacates that an error occured.

See Also:
Constant Field Values
Method Detail

calculateRisk

public float calculateRisk(ExtendedOrder eo)
Calculates the risk addition of an order according to its riskiness.

Parameters:
eo - order to calculate the risk addition for
Returns:
the risk addition of an order according to its riskiness.

getCurrentRiskLevel

public int getCurrentRiskLevel()
Returns the current risk level.

Returns:
the current risk level