pt.unl.fct.di.novasys.babel.crdts.delta.generic

Class DeltaBasedCRDT

    • Field Detail

    • Method Detail

      • getReplicaID

        public ReplicaID getReplicaID()
        Description copied from interface: DeltaCRDT
        Gets the replica identifier
        Specified by:
        getReplicaID in interface DeltaCRDT
        Returns:
        the replica identifier.
      • getReplicaState

        public VVState getReplicaState()
        Description copied from interface: DeltaCRDT
        Gets the replica state. At the moment this state stores the replica identifier and a version vector to handle causal context.
        Specified by:
        getReplicaState in interface DeltaCRDT
        Returns:
        the replica state
      • generateDelta

        public abstract DeltaBasedCRDT generateDelta(VersionVector vv)
        Description copied from interface: DeltaCRDT
        Calculates a delta from a given version for the current state
        Specified by:
        generateDelta in interface DeltaCRDT
        Parameters:
        vv - a version version to calculate the delta from
        Returns:
        a delta for the current state
      • mergeDelta

        public abstract DeltaBasedCRDT mergeDelta(DeltaBasedCRDT delta)
        Description copied from interface: DeltaCRDT
        Applies a delta to the current state. This method is analogous to a merge of states
        Specified by:
        mergeDelta in interface DeltaCRDT
        Parameters:
        delta - a crdt representing the delta
        Returns:
        the current state

Copyright © 2024. All rights reserved.