package fauxExchange; abstract class ClosedState extends State { //--[ MemberData ]-------------- private static RuleManager rm; static { Rule br = new BreakRule(); rm = new RuleManager(); rm.addRule(br); } //--[ MemberMethods ]------------ public void applyRules(OrderBook ob, Order o) throws TradeClosedException { rm.applyRules(ob,o); } public void bootstrapState(OrderBook ob) throws TradeClosedException { rm.applyRules(ob,null); } ClosedState () { // System.out.println("Initializing a ClosedState object..."); } } //end class