public abstract class AbstractModelInstance<C extends TimeBasedChargeable> extends Object implements BillingModel.Instance<C>
| Constructor and Description |
|---|
AbstractModelInstance(ModelProfile modelProfile) |
| Modifier and Type | Method and Description |
|---|---|
protected ModelProfile |
getModelProfile() |
BillingModel.Algorithm<C> |
getWholeTimeAlgorithm() |
List<BillingModel.Fragment<C>> |
slice(Period period,
C chargeable) |
public AbstractModelInstance(ModelProfile modelProfile)
protected ModelProfile getModelProfile()
public BillingModel.Algorithm<C> getWholeTimeAlgorithm()
getWholeTimeAlgorithm in interface BillingModel.Instance<C extends TimeBasedChargeable>public List<BillingModel.Fragment<C>> slice(Period period, C chargeable)
slice in interface BillingModel.Instance<C extends TimeBasedChargeable>period - 计费时段chargeable - 计费对象Copyright © 2020. All rights reserved.