PerishableSimResultsWrapper

A wrapper around SimulationResults objects to make them implement PerishableSimResultsWrapper. Used by TypeUtilsEditablePlanAdapter internally.

Constructors

Link copied to clipboard
constructor(simulationResults: SimulationResults, stale: Boolean = false)

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
open override fun instances(): Instances<AnyInstance>

Queries all activity instances, deserializing them as AnyInstance.

open override fun instances(type: String): Instances<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 setStale(stale: Boolean)
Link copied to clipboard
open override fun simBounds(): Interval

Bounds on which the plan was most recently simulated.