public abstract class OperationBasedCRDT extends CRDT implements OperationCRDT
| Modifier and Type | Field and Description |
|---|---|
protected String |
crtdID
Stores the CRDT identifier.
|
| Constructor and Description |
|---|
OperationBasedCRDT(String crdtID,
CRDTsTypes type)
Creates an abstract operation-based CRDT.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
applyRemoteOperation(Operation op)
Applies a remote operation into the local state of the CRDT
|
String |
getCrtdID() |
abstract void |
installRemoteState(OperationBasedCRDT crdt)
Installs the remote state into the local the CRDT.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopy, deserializeDataType, getType, serializeprotected String crtdID
public OperationBasedCRDT(String crdtID, CRDTsTypes type)
crdtID - the identifier of the CRDT.type - its unique type.public String getCrtdID()
getCrtdID in interface OperationCRDTpublic abstract void applyRemoteOperation(Operation op) throws OperationNotValidException
OperationCRDTapplyRemoteOperation in interface OperationCRDTop - operation to be appliedOperationNotValidException - if the operation is not valid.public abstract void installRemoteState(OperationBasedCRDT crdt) throws CRDTNotValidException
OperationCRDTinstallRemoteState in interface OperationCRDTcrdt - the CRDT to be installedCRDTNotValidException - if the CRDT is not valid.Copyright © 2024. All rights reserved.