|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powertac.common.repo.TariffSubscriptionRepo
@Repository public class TariffSubscriptionRepo
Repository for TariffSubscriptions. This cannot be in common, because TariffSubscription is not in common.
| Constructor Summary | |
|---|---|
TariffSubscriptionRepo()
|
|
| Method Summary | |
|---|---|
TariffSubscription |
add(TariffSubscription subscription)
Adds an existing subscription to the repo. |
List<TariffSubscription> |
findActiveSubscriptionsForCustomer(org.powertac.common.CustomerInfo customer)
Returns the list of active subscriptions for a given customer. |
TariffSubscription |
findSubscriptionForTariffAndCustomer(org.powertac.common.Tariff tariff,
org.powertac.common.CustomerInfo customer)
|
List<TariffSubscription> |
findSubscriptionsForCustomer(org.powertac.common.CustomerInfo customer)
Returns the list of subscriptions for a given customer. |
List<TariffSubscription> |
findSubscriptionsForTariff(org.powertac.common.Tariff tariff)
Returns the list of subscriptions for a given tariff. |
List<TariffSubscription> |
getRevokedSubscriptionList(org.powertac.common.CustomerInfo customer)
Returns the list of subscriptions for this customer that have been revoked and have non-zero committed customer counts. |
TariffSubscription |
getSubscription(org.powertac.common.CustomerInfo customer,
org.powertac.common.Tariff tariff)
Returns the TariffSubscription for the given Tariff/Customer pair, creating it if necessary. |
void |
recycle()
Clears out the repo in preparation for another simulation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TariffSubscriptionRepo()
| Method Detail |
|---|
public TariffSubscription getSubscription(org.powertac.common.CustomerInfo customer,
org.powertac.common.Tariff tariff)
public List<TariffSubscription> findSubscriptionsForTariff(org.powertac.common.Tariff tariff)
public List<TariffSubscription> findSubscriptionsForCustomer(org.powertac.common.CustomerInfo customer)
public List<TariffSubscription> findActiveSubscriptionsForCustomer(org.powertac.common.CustomerInfo customer)
public TariffSubscription add(TariffSubscription subscription)
public TariffSubscription findSubscriptionForTariffAndCustomer(org.powertac.common.Tariff tariff,
org.powertac.common.CustomerInfo customer)
public List<TariffSubscription> getRevokedSubscriptionList(org.powertac.common.CustomerInfo customer)
public void recycle()
recycle in interface org.powertac.common.repo.DomainRepo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||