edu.cuny.cat.server
Class ValuerFactory
java.lang.Object
edu.cuny.cat.server.ValuerFactory
- All Implemented Interfaces:
- edu.cuny.config.param.Parameterizable
public final class ValuerFactory
- extends java.lang.Object
- implements edu.cuny.config.param.Parameterizable
A factory class providing ValuerGenerator
instances that can in turn create
ValuationPolicy
instances to generate demand
and supply schedules among simulated trading agents.
Parameters
base.buyer
class, implementing
ValuerGenerator |
(the type of demand schedule generator) |
base.seller
class, implementing
ValuerGenerator |
(the type of supply schedule generator) |
Default Base
- Version:
- $Revision: 1.12 $
- Author:
- Jinzhong Niu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
P_DEF_BASE
public static final java.lang.String P_DEF_BASE
- See Also:
- Constant Field Values
P_BUYER
public static final java.lang.String P_BUYER
- See Also:
- Constant Field Values
P_SELLER
public static final java.lang.String P_SELLER
- See Also:
- Constant Field Values
buyerValuerGenerator
protected ValuerGenerator buyerValuerGenerator
sellerValuerGenerator
protected ValuerGenerator sellerValuerGenerator
ValuerFactory
public ValuerFactory()
setup
public void setup(edu.cuny.config.param.ParameterDatabase parameters,
edu.cuny.config.param.Parameter base)
- Specified by:
setup
in interface edu.cuny.config.param.Parameterizable
createValuer
public ValuationPolicy createValuer(boolean isSeller)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object