1048b156
Suraputt Suntimitr
Template
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package th.co.ais.ssbsrfc.control;
import ec02.utils.Log;
import th.co.ais.ssbsrfc.config.StateConfig;
import th.co.ais.ssbsrfc.interfaces.AbstractAFSubStateManager;
import th.co.ais.ssbsrfc.substate.SubWaitAdjustmentChargeReportResponse;
import th.co.ais.ssbsrfc.substate.SubWaitAdjustmentChargeRequestResponse;
import th.co.ais.ssbsrfc.substate.SubWaitChargeReport;
import th.co.ais.ssbsrfc.substate.SubWaitChargeRequest;
public class SubStateManager extends AbstractAFSubStateManager {
public SubStateManager(String subState) {
Log.i("[Sub State ] : " + subState);
this.subStateManager = null;
if (subState.equals(StateConfig.SSTATE_W_CHARGEREQUEST)) {
this.subStateManager = new SubWaitChargeRequest();
}
else if (subState.equals(StateConfig.SSTATE_W_CHARGEREPORT)) {
this.subStateManager = new SubWaitChargeReport();
}
else if (subState.equals(StateConfig.SSTATE_W_ADJUSTMENT_CHARGEREPORT)) {
this.subStateManager = new SubWaitAdjustmentChargeReportResponse();
}
else if (subState.equals(StateConfig.SSTATE_W_ADJUSTMENT_CHARGEREQUEST)) {
this.subStateManager = new SubWaitAdjustmentChargeRequestResponse();
}
}
}
|