Class WeightedCrossSection<A,T>
java.lang.Object
microsim.dev.statistics.WeightedCrossSection<A,T>
- All Implemented Interfaces:
Supplier<WeightedValues<T>>
A weighted cross section is a collection of values; each of them
representing the status of a given variable of an element of a collection of
agents, along with the weight associated with each agent.
-
Constructor Summary
ConstructorsConstructorDescriptionWeightedCrossSection(Supplier<? extends Collection<? extends A>> source, Function<? super A, ? extends T> getObservable, Function<? super A, ? extends Double> getWeight) -
Method Summary
Modifier and TypeMethodDescriptionget()once()Wrap theWeightedCrossSectionin aOncecache.oncePerSimTime(SimulationEngine engine) Wrap theWeightedCrossSectionin aOnceUntilcache that checks when the simulation time changes.
-
Constructor Details
-
WeightedCrossSection
-
-
Method Details
-
get
-
once
Wrap theWeightedCrossSectionin aOncecache. -
oncePerSimTime
Wrap theWeightedCrossSectionin aOnceUntilcache that checks when the simulation time changes.
-