com.motlin.risk.simulation.step
Class AbstractStep<E extends Probability<E>>

java.lang.Object
  extended by com.motlin.risk.simulation.step.AbstractStep<E>
All Implemented Interfaces:
Step<E>
Direct Known Subclasses:
FinalStep, IntermediateStep

public abstract class AbstractStep<E extends Probability<E>>
extends Object
implements Step<E>


Constructor Summary
AbstractStep(StepKey key, E probability)
           
 
Method Summary
 void addProbability(E additionalProbability)
           
 boolean equals(Object obj)
           
 StepKey getKey()
           
 int getNumberOfAttackers()
           
 int getNumberOfDefenders()
           
 E getProbability()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractStep

public AbstractStep(StepKey key,
                    E probability)
Method Detail

getNumberOfAttackers

public final int getNumberOfAttackers()
Specified by:
getNumberOfAttackers in interface Step<E extends Probability<E>>

getNumberOfDefenders

public final int getNumberOfDefenders()
Specified by:
getNumberOfDefenders in interface Step<E extends Probability<E>>

getKey

public final StepKey getKey()
Specified by:
getKey in interface Step<E extends Probability<E>>

addProbability

public final void addProbability(E additionalProbability)
Specified by:
addProbability in interface Step<E extends Probability<E>>

getProbability

public final E getProbability()
Specified by:
getProbability in interface Step<E extends Probability<E>>

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object