addResponse

fun addResponse(responseName: String)

The supplied name must be the name of the model element representing the desired response. If the name does not exist in the model, then nothing is added and no errors occur. Thus, this method fails silently.

Parameters

responseName

the name of the response to add for collection


fun addResponse(response: ResponseCIfc, responseAlias: String = response.name)

The response is added to the control variate data collector with the supplied responseAlias response alias. The default response alias is the name of the response within the model. If the response alias has already been added, then an exception occurs. That is, the response alias must be unique to the collector.