class CachedCommitments extends AnyRef
Caches the commitments per participant and the commitments per stakeholder group in a period, in order to optimize the computation of commitments for the subsequent period. It optimizes the computation of a counter-participant commitments when at most half of the stakeholder commitments shared with that participant change in the next period.
The class is thread-safe w.r.t. calling setCachedCommitments and computeCmtFromCached. However, for correct commitment computation, the caller needs to call setCachedCommitments before computeCmtFromCached, because computeCmtFromCached uses the state set by setCachedCommitments.
- Annotations
- @SuppressWarnings()
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CachedCommitments
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new CachedCommitments(prevParticipantCmts: Map[ParticipantId, CommitmentType] = Map.empty[ParticipantId, AcsCommitment.CommitmentType], prevStkhdCmts: Map[SortedSet[LfPartyId], CommitmentType] = Map .empty[SortedSet[LfPartyId], AcsCommitment.CommitmentType], prevParticipantToStkhd: Map[ParticipantId, Set[SortedSet[LfPartyId]]] = Map.empty[ParticipantId, Set[SortedSet[LfPartyId]]])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clear(): Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def computeCmtFromCached(participant: ParticipantId, newStkhdCmts: Map[SortedSet[LfPartyId], CommitmentType]): Option[CommitmentType]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def setCachedCommitments(cmts: Map[ParticipantId, CommitmentType], stkhdCmts: Map[SortedSet[LfPartyId], CommitmentType], participantToStkhd: Map[ParticipantId, Set[SortedSet[LfPartyId]]]): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])