picsou.pricing
Class EuropeanBarrier
java.lang.Object
picsou.pricing.PricingSimulator
picsou.pricing.EuropeanBarrier
- All Implemented Interfaces:
- Simulator
- Direct Known Subclasses:
- EuropeanBarrierDown, EuropeanBarrierUp
public abstract class EuropeanBarrier
- extends PricingSimulator
Fields inherited from class picsou.pricing.PricingSimulator |
a1, a2, alg, asset, deltaT, generator, itsPerPacket, log, offloadedIts, riskFreeRateDiscount, state, timeIntervals |
Methods inherited from class picsou.pricing.PricingSimulator |
autorun, getAlg, getAsset, getDefaultOptionSet, getOptionSet, getPrice, getState, getXMLFormatter, init, init, init, merge, offload, printAlgXML, printAssetXML, printOptionSet, reset, restart, seed, simulate, simulate, simulate, simulate, unguardedMerge, unguardedRestart, unguardedSimulate, updateState, updateValues |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
barrierPrice
protected double barrierPrice
EuropeanBarrier
public EuropeanBarrier()
compareBarrier
protected abstract boolean compareBarrier(double currentPrice)
isOutPastBarrier
protected abstract boolean isOutPastBarrier()
isInPastBarrier
protected abstract boolean isInPastBarrier()
barrierValid
protected abstract boolean barrierValid(double barrierPrice)
algInit
public void algInit(double barrierPrice)
throws InvalidValueException
- Throws:
InvalidValueException
unguardedSimulate
protected final void unguardedSimulate(int simCount)
unguardedGetPutPrice
public double unguardedGetPutPrice()
unguardedGetCallPrice
public double unguardedGetCallPrice()