ResponseFunctionOracle

constructor(modelIdentifier: String, responseNames: Set<String>, responseFunctionBuilder: ResponseFunctionBuilderIfc, microRepSampleSize: Int = 1, streamProvider: RNStreamProviderIfc = RNStreamProvider(), streamTapePolicy: StreamTapePolicy = StreamTapePolicy())(source)

Parameters

modelIdentifier

the identifier that evaluation requests must carry to be served by this oracle; plays the role of the model identifier of a simulation model

responseNames

the names of the responses the response function produces; requests may ask for any subset (an empty request set means all of them)

responseFunctionBuilder

builds this oracle's response function against the oracle's stream provider, acquiring all randomness at construction

microRepSampleSize

the number of response-function evaluations averaged into one replication (one observation); the default of 1 makes an observation a single raw evaluation. Must be at least 1.

streamProvider

the provider this oracle owns and positions; defaults to a fresh provider so that identically configured oracles reproduce each other exactly

streamTapePolicy

the persistent sub-stream tape; supply one with a non-zero initial position to give a concurrent member its own block of randomness