edu.cuny.cat.server
Class ValuerFactory

java.lang.Object
  extended by 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

valuation

Version:
$Revision: 1.12 $
Author:
Jinzhong Niu

Field Summary
protected  ValuerGenerator buyerValuerGenerator
           
static java.lang.String P_BUYER
           
static java.lang.String P_DEF_BASE
           
static java.lang.String P_SELLER
           
protected  ValuerGenerator sellerValuerGenerator
           
 
Constructor Summary
ValuerFactory()
           
 
Method Summary
 ValuationPolicy createValuer(boolean isSeller)
           
 void setup(edu.cuny.config.param.ParameterDatabase parameters, edu.cuny.config.param.Parameter base)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ValuerFactory

public ValuerFactory()
Method Detail

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