Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GenericModelEngine<ModelType, ArgumentsType, ResultsType>

Base class for some pricing engine on a particular model Derived engines only need to implement the calculate() method

Type parameters

Hierarchy

Implements

Implemented by

Index

Properties

_arguments

_arguments: ArgumentsType

_isDisposed

_isDisposed: boolean = false

_model

_model: Handle<ModelType>

_observables

_observables: Set<Observable> = new Set()

_observers

_observers: Set<Observer> = new Set()

_results

_results: ResultsType

deepUpdate

deepUpdate: () => void

Type declaration

    • (): void
    • Returns void

dispose

dispose: () => void

Type declaration

    • (): void
    • Returns void

isDisposed

isDisposed: boolean

notifyObservers

notifyObservers: () => void

Type declaration

    • (): void
    • Returns void

registerObserver

registerObserver: (o: Observer) => void

Type declaration

registerWith

registerWith: (h: Observable) => void

Type declaration

registerWithObservables

registerWithObservables: (o: Observer) => void

Type declaration

unregisterObserver

unregisterObserver: (o: Observer) => void

Type declaration

unregisterWith

unregisterWith: (h: Observable) => Size

Type declaration

unregisterWithAll

unregisterWithAll: () => void

Type declaration

    • (): void
    • Returns void

Methods

calculate

  • calculate(): void

getArguments

  • getArguments(): ArgumentsType

getResults

  • getResults(): ResultsType

init1

  • Parameters

    • Default value model: Handle<ModelType> = new Handle()

    Returns GenericModelEngine<ModelType, ArgumentsType, ResultsType>

init2

  • Parameters

    • model: ModelType

    Returns GenericModelEngine<ModelType, ArgumentsType, ResultsType>

reset

  • reset(): void

update

  • update(): void