public class PolicyAgentFactory
extends java.lang.Object
| Constructor and Description |
|---|
PolicyAgentFactory() |
| Modifier and Type | Method and Description |
|---|---|
static ConsumerPolicyScheme |
consumerPolicySchemeLoader(java.lang.String consumerPolicySchemeQualifier)
The consumerPolicySchemeLoader creates an instance of the ConsumerPolicyScheme
qualified by the consumerPolicySchemeQualifier, if the corresponding scheme was implemented.
|
static PolicyAgent |
createPolicyAgent(SimulationContainer simulationContainer,
double informationAuthority,
RegulatoryPolicyScheme regulatoryPolicyScheme,
ProductPolicyScheme productPolicyScheme,
MarketEvaluationScheme marketEvaluationScheme,
ConsumerPolicyScheme consumerPolicyScheme)
Method to create the agent and add it to the simulation.
|
static MarketEvaluationScheme |
marketEvaluationSchemeLoader(java.lang.String marketEvaluationSchemeQualifier)
The marketEvaluationSchemeLoader creates an instance of the MarketEvaluationScheme
qualified by the marketEvaluationSchemeQualifier, if the corresponding scheme was implemented.
|
static ProductPolicyScheme |
productPolicySchemeLoader(java.lang.String productPolicySchemeQualifier)
The ProductPolicySchemeLoader creates an instance of the ProductPolicyScheme
qualified by the productPolicySchemeQualifier, if the corresponding scheme was implemented.
|
static RegulatoryPolicyScheme |
regulatoryPolicySchemeLoader(java.lang.String regulatoryPolicySchemeQualifier)
The regulatoryPolicySchemeLoader creates an instance of the RegulatoryPolicyScheme
qualified by the regulatoryPolicySchemeQualifier, if the corresponding scheme was implemented.
|
public static PolicyAgent createPolicyAgent(SimulationContainer simulationContainer, double informationAuthority, RegulatoryPolicyScheme regulatoryPolicyScheme, ProductPolicyScheme productPolicyScheme, MarketEvaluationScheme marketEvaluationScheme, ConsumerPolicyScheme consumerPolicyScheme) throws java.lang.IllegalStateException
simulationContainer - The container the simulation runs ininformationAuthority - The informationAuthority of the PolicyAgentregulatoryPolicyScheme - The RegulatoryPolicyScheme the Policy agent usesproductPolicyScheme - The ProductPolicyScheme used by the Policy agentmarketEvaluationScheme - The MarketEvaluationScheme used by the Policy agentconsumerPolicyScheme - The ConsumerPolicyScheme used by the Policy agentjava.lang.IllegalStateException - Will be thrown when a policy agent has already been instatiatedpublic static ProductPolicyScheme productPolicySchemeLoader(java.lang.String productPolicySchemeQualifier) throws java.lang.IllegalArgumentException
productPolicySchemeQualifier - A String corresponding to the ProductManipulationScheme to be loadedjava.lang.IllegalArgumentException - will be thrown when the productPolicySchemeQualifier refers to an unimplemented schemepublic static MarketEvaluationScheme marketEvaluationSchemeLoader(java.lang.String marketEvaluationSchemeQualifier) throws java.lang.IllegalArgumentException
marketEvaluationSchemeQualifier - A String corresponding to the MarketEvaluationScheme to be loadedjava.lang.IllegalArgumentException - will be thrown when the marketEvaluationSchemeQualifier refers to an unimplemented schemepublic static ConsumerPolicyScheme consumerPolicySchemeLoader(java.lang.String consumerPolicySchemeQualifier) throws java.lang.IllegalArgumentException
consumerPolicySchemeQualifier - A String corresponding to the ConsumerPolicyScheme to be loadedjava.lang.IllegalArgumentException - will be thrown when the consumerPolicySchemeQualifier refers to an unimplemented schemepublic static RegulatoryPolicyScheme regulatoryPolicySchemeLoader(java.lang.String regulatoryPolicySchemeQualifier) throws java.lang.IllegalArgumentException
regulatoryPolicySchemeQualifier - A String corresponding to the RegulatoryPolicyScheme to be loadedjava.lang.IllegalArgumentException - will be thrown when the regulatoryPolicySchemeQualifier refers to an unimplemented scheme