|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpicsou.pricing.PricingSimulator
public abstract class PricingSimulator
Field Summary | |
---|---|
protected double |
a1
|
protected double |
a2
|
protected Algorithm |
alg
|
protected Asset |
asset
|
protected double |
deltaT
|
protected Random |
generator
|
protected int |
itsPerPacket
|
protected Log |
log
|
protected int |
offloadedIts
|
protected double |
riskFreeRateDiscount
|
protected State |
state
|
protected int |
timeIntervals
|
Constructor Summary | |
---|---|
PricingSimulator()
|
Method Summary | |
---|---|
org.objectweb.proactive.core.util.wrapper.BooleanWrapper |
autorun(Simulator parent)
Ask the simulator to run, pulling tasks from sim and merging them back in as they complete. |
Algorithm |
getAlg()
|
Asset |
getAsset()
|
abstract OptionSet |
getDefaultOptionSet()
|
OptionSet |
getOptionSet()
Returns the OptionSet entry state: any exit state: unchanged |
Price |
getPrice()
|
State |
getState()
Returns the current state entry state: any exit state: unchanged |
protected org.apache.xml.serialize.OutputFormat |
getXMLFormatter()
|
abstract void |
init(Algorithm alg,
Asset asset)
Sets up the Simulator with an algorithm and an asset. |
void |
init(OptionSet optionSet)
Sets up the Simulator with an algorithm and an asset. |
void |
init(java.lang.String fileOrURL)
|
void |
merge(Simulator sim)
Adds the results of another simulator to this Simulator. |
org.objectweb.proactive.core.util.wrapper.IntWrapper |
offload(Simulator sim)
Offer a number of the queued iterations to another simulator. |
void |
printAlgXML()
|
void |
printAssetXML()
|
void |
printOptionSet(java.io.OutputStream out)
|
void |
reset()
Resets Simulator to initial (cleared) state. |
void |
restart()
Clears the current results to restart the Simulator with the original Algorithm and Asset (cleared of Performance and Price results). |
void |
seed(Simulator sim)
Seeds the current Simulator from the state of another Simulator. |
void |
simulate()
Do a simulation on the asset with the given parameters and using all remaining iterations entry state: READY or RUNNING exit state: DONE |
org.objectweb.proactive.core.util.wrapper.IntWrapper |
simulate(java.lang.Double simCount)
|
org.objectweb.proactive.core.util.wrapper.IntWrapper |
simulate(java.lang.Integer simCount)
Attempt to simulate up to "iterations", return actual number completed. |
org.objectweb.proactive.core.util.wrapper.IntWrapper |
simulate(org.objectweb.proactive.core.util.wrapper.IntWrapper simCount)
|
protected abstract void |
unguardedMerge(Simulator sim)
|
protected void |
unguardedRestart()
|
protected abstract java.lang.Integer |
unguardedSimulate(java.lang.Integer simCount)
|
protected void |
updateState()
|
protected abstract void |
updateValues(java.lang.Double sumX,
java.lang.Double sumXX,
java.lang.Integer simCount)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Algorithm alg
protected Asset asset
protected State state
protected Random generator
protected transient Log log
protected int timeIntervals
protected int itsPerPacket
protected int offloadedIts
protected double deltaT
protected double riskFreeRateDiscount
protected double a1
protected double a2
Constructor Detail |
---|
public PricingSimulator()
Method Detail |
---|
public void init(java.lang.String fileOrURL)
public void init(OptionSet optionSet)
Simulator
init
in interface Simulator
public abstract void init(Algorithm alg, Asset asset)
Simulator
init
in interface Simulator
public void simulate() throws InvalidStateException
Simulator
simulate
in interface Simulator
InvalidStateException
public org.objectweb.proactive.core.util.wrapper.IntWrapper simulate(java.lang.Double simCount) throws InvalidStateException
InvalidStateException
public org.objectweb.proactive.core.util.wrapper.IntWrapper simulate(org.objectweb.proactive.core.util.wrapper.IntWrapper simCount) throws InvalidStateException
InvalidStateException
public org.objectweb.proactive.core.util.wrapper.IntWrapper simulate(java.lang.Integer simCount) throws InvalidStateException
Simulator
simulate
in interface Simulator
InvalidStateException
public org.objectweb.proactive.core.util.wrapper.BooleanWrapper autorun(Simulator parent) throws InvalidStateException
Simulator
autorun
in interface Simulator
InvalidStateException
public org.objectweb.proactive.core.util.wrapper.IntWrapper offload(Simulator sim)
Simulator
offload
in interface Simulator
public void merge(Simulator sim) throws InvalidStateException
Simulator
merge
in interface Simulator
InvalidStateException
public void seed(Simulator sim) throws InvalidStateException
Simulator
seed
in interface Simulator
InvalidStateException
public void reset()
Simulator
reset
in interface Simulator
public void restart() throws InvalidStateException
Simulator
restart
in interface Simulator
InvalidStateException
protected abstract java.lang.Integer unguardedSimulate(java.lang.Integer simCount) throws InvalidStateException
InvalidStateException
protected abstract void unguardedMerge(Simulator sim) throws InvalidStateException
InvalidStateException
protected void unguardedRestart()
protected abstract void updateValues(java.lang.Double sumX, java.lang.Double sumXX, java.lang.Integer simCount) throws InvalidStateException
InvalidStateException
protected org.apache.xml.serialize.OutputFormat getXMLFormatter()
public void printOptionSet(java.io.OutputStream out)
public void printAlgXML()
public void printAssetXML()
protected void updateState()
public State getState()
Simulator
getState
in interface Simulator
public Price getPrice() throws InvalidStateException
InvalidStateException
public Algorithm getAlg()
public Asset getAsset()
public abstract OptionSet getDefaultOptionSet()
public OptionSet getOptionSet()
Simulator
getOptionSet
in interface Simulator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |