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

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

public final class FinalStep<E extends Probability<E>>
extends AbstractStep<E>
implements Comparable<FinalStep<E>>


Constructor Summary
FinalStep(StepKey key, E probability)
           
 
Method Summary
 boolean attackersWon()
           
 int compareTo(FinalStep<E> other)
           
 String getSurvivingSide()
           
 String toString()
           
 
Methods inherited from class com.motlin.risk.simulation.step.AbstractStep
addProbability, equals, getKey, getNumberOfAttackers, getNumberOfDefenders, getProbability, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FinalStep

public FinalStep(StepKey key,
                 E probability)
Method Detail

attackersWon

public boolean attackersWon()

getSurvivingSide

public String getSurvivingSide()

toString

public String toString()
Overrides:
toString in class AbstractStep<E extends Probability<E>>

compareTo

public int compareTo(FinalStep<E> other)
Specified by:
compareTo in interface Comparable<FinalStep<E extends Probability<E>>>