Search
Preparing search index...
The search index is not available
quantlib.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"ql/pricingengines/swap/treeswapengine"
TreeVanillaSwapEngine
Class TreeVanillaSwapEngine
Numerical lattice engine for simple swaps
test calculations are checked against known good results
Hierarchy
LatticeShortRateModelEngine
<
Arguments
,
Results
>
TreeVanillaSwapEngine
Implements
Observable
Observer
PricingEngine
Index
Constructors
constructor
Properties
_arguments
_is
Disposed
_lattice
_model
_observables
_observers
_results
_term
Structure
_time
Grid
_time
Steps
deep
Update
dispose
is
Disposed
notify
Observers
register
Observer
register
With
register
With
Observables
unregister
Observer
unregister
With
unregister
With
All
Methods
calculate
get
Arguments
get
Results
init1
init2
lsrme
Init1
lsrme
Init2
lsrme
Init3
reset
tvse
Init1
tvse
Init2
update
Constructors
constructor
new
Tree
Vanilla
Swap
Engine
(
)
:
TreeVanillaSwapEngine
Returns
TreeVanillaSwapEngine
Properties
_arguments
_arguments
:
Arguments
_is
Disposed
_is
Disposed
:
boolean
= false
Protected
_lattice
_lattice
:
Lattice
_model
_model
:
Handle
<
ShortRateModel
>
_observables
_observables
:
Set
<
Observable
>
= new Set()
_observers
_observers
:
Set
<
Observer
>
= new Set()
_results
_results
:
Results
Private
_term
Structure
_term
Structure
:
Handle
<
YieldTermStructure
>
Protected
_time
Grid
_time
Grid
:
TimeGrid
Protected
_time
Steps
_time
Steps
:
Size
deep
Update
deep
Update
:
(
)
=>
void
Type declaration
(
)
:
void
Returns
void
dispose
dispose
:
(
)
=>
void
Type declaration
(
)
:
void
Returns
void
is
Disposed
is
Disposed
:
boolean
notify
Observers
notify
Observers
:
(
)
=>
void
Type declaration
(
)
:
void
Returns
void
register
Observer
register
Observer
:
(
o
:
Observer
)
=>
void
Type declaration
(
o
:
Observer
)
:
void
Parameters
o:
Observer
Returns
void
register
With
register
With
:
(
h
:
Observable
)
=>
void
Type declaration
(
h
:
Observable
)
:
void
Parameters
h:
Observable
Returns
void
register
With
Observables
register
With
Observables
:
(
o
:
Observer
)
=>
void
Type declaration
(
o
:
Observer
)
:
void
Parameters
o:
Observer
Returns
void
unregister
Observer
unregister
Observer
:
(
o
:
Observer
)
=>
void
Type declaration
(
o
:
Observer
)
:
void
Parameters
o:
Observer
Returns
void
unregister
With
unregister
With
:
(
h
:
Observable
)
=>
Size
Type declaration
(
h
:
Observable
)
:
Size
Parameters
h:
Observable
Returns
Size
unregister
With
All
unregister
With
All
:
(
)
=>
void
Type declaration
(
)
:
void
Returns
void
Methods
calculate
calculate
(
)
:
void
Returns
void
get
Arguments
get
Arguments
(
)
:
Arguments
Returns
Arguments
get
Results
get
Results
(
)
:
Results
Returns
Results
init1
init1
(
model
?:
Handle
<
ShortRateModel
>
)
:
GenericModelEngine
<
ShortRateModel
,
Arguments
,
Results
>
Parameters
Default value
model:
Handle
<
ShortRateModel
>
= new Handle()
Returns
GenericModelEngine
<
ShortRateModel
,
Arguments
,
Results
>
init2
init2
(
model
:
ShortRateModel
)
:
GenericModelEngine
<
ShortRateModel
,
Arguments
,
Results
>
Parameters
model:
ShortRateModel
Returns
GenericModelEngine
<
ShortRateModel
,
Arguments
,
Results
>
lsrme
Init1
lsrme
Init1
(
model
:
ShortRateModel
, timeSteps
:
Size
)
:
LatticeShortRateModelEngine
<
Arguments
,
Results
>
Parameters
model:
ShortRateModel
timeSteps:
Size
Returns
LatticeShortRateModelEngine
<
Arguments
,
Results
>
lsrme
Init2
lsrme
Init2
(
model
:
Handle
<
ShortRateModel
>
, timeSteps
:
Size
)
:
LatticeShortRateModelEngine
<
Arguments
,
Results
>
Parameters
model:
Handle
<
ShortRateModel
>
timeSteps:
Size
Returns
LatticeShortRateModelEngine
<
Arguments
,
Results
>
lsrme
Init3
lsrme
Init3
(
model
:
ShortRateModel
, timeGrid
:
TimeGrid
)
:
LatticeShortRateModelEngine
<
Arguments
,
Results
>
Parameters
model:
ShortRateModel
timeGrid:
TimeGrid
Returns
LatticeShortRateModelEngine
<
Arguments
,
Results
>
reset
reset
(
)
:
void
Returns
void
tvse
Init1
tvse
Init1
(
model
:
ShortRateModel
, timeSteps
:
Size
, termStructure
?:
Handle
<
YieldTermStructure
>
)
:
TreeVanillaSwapEngine
Parameters
model:
ShortRateModel
timeSteps:
Size
Default value
termStructure:
Handle
<
YieldTermStructure
>
= new Handle(new YieldTermStructure())
Returns
TreeVanillaSwapEngine
tvse
Init2
tvse
Init2
(
model
:
ShortRateModel
, timeGrid
:
TimeGrid
, termStructure
?:
Handle
<
YieldTermStructure
>
)
:
TreeVanillaSwapEngine
Parameters
model:
ShortRateModel
timeGrid:
TimeGrid
Default value
termStructure:
Handle
<
YieldTermStructure
>
= new Handle(new YieldTermStructure())
Returns
TreeVanillaSwapEngine
update
update
(
)
:
void
Returns
void
Globals
"ql/pricingengines/swap/treeswapengine"
Tree
Vanilla
Swap
Engine
constructor
_arguments
_is
Disposed
_lattice
_model
_observables
_observers
_results
_term
Structure
_time
Grid
_time
Steps
deep
Update
dispose
is
Disposed
notify
Observers
register
Observer
register
With
register
With
Observables
unregister
Observer
unregister
With
unregister
With
All
calculate
get
Arguments
get
Results
init1
init2
lsrme
Init1
lsrme
Init2
lsrme
Init3
reset
tvse
Init1
tvse
Init2
update
Numerical lattice engine for simple swaps
test calculations are checked against known good results