StubSimulationResults

A stub of the SimulationResults interface that throws an exception on all methods. Used for testing by overriding methods with hard-coded outputs. You only need to implement the methods you intend to call.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

The input directives that were used for this simulation, deserialized as AnyDirective.

open override fun <A : Any> inputDirectives(deserializer: (SerializedValue) -> A): Directives<A>

The input directives that were used for this simulation.

Link copied to clipboard

Queries all activity instances, deserializing them as AnyInstance.

Queries activity instances, filtered by type, deserializing them as AnyInstance.

open override fun <A : Any> instances(type: String?, deserializer: (SerializedValue) -> A): Instances<A>

Query activity instances.

Link copied to clipboard
open override fun isStale(): Boolean

Whether these results are up-to-date with all changes.

Link copied to clipboard
open override fun <V : Any, TL : SerialSegmentOps<V, TL>> resource(name: String, deserializer: (List<Segment<SerializedValue>>) -> TL): TL

Query a resource profile from this simulation dataset.

Link copied to clipboard
open override fun simBounds(): Interval

Bounds on which the plan was most recently simulated.