|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.coweb.oe.ContextVectorTable
public class ContextVectorTable
| Constructor Summary | |
|---|---|
ContextVectorTable(ContextVector cv,
int site)
|
|
| Method Summary | |
|---|---|
ContextVector |
getContextVector(int site)
Gets the context vector for the given site. |
int[] |
getEquivalents(ContextVector cv,
int skip)
Gets the index of each entry in the table frozen to (i.e., sharing a reference with, the given context vector, skipping the one noted in the skip param. |
ContextVector |
getMinimumContextVector()
Gets the context vector with the minimum sequence number for each site among all context vectors in the table. |
int[][] |
getState()
Serializes the state of this context vector table for transmission. |
void |
growTo(int count)
Increases the size of the context vector table to the given size. |
void |
setState(int[][] arr)
Unserializes context vector table contents to initialize this intance. |
String |
toString()
Converts the contents of this context vector table to a string. |
void |
updateWithContextVector(int site,
ContextVector cv)
Sets the context vector for the given site. |
void |
updateWithOperation(Operation op)
Sets the context vector for the site on the given operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContextVectorTable(ContextVector cv,
int site)
throws OperationEngineException
OperationEngineException| Method Detail |
|---|
public String toString()
toString in class Object
public int[] getEquivalents(ContextVector cv,
int skip)
{ContextVector} - cv Context vector instance{Number} - skip Integer index to skippublic int[][] getState()
public void setState(int[][] arr)
throws OperationEngineException
{Array[]} - arr Array in the format returned by getState
OperationEngineException
public void growTo(int count)
throws OperationEngineException
{Number} - count Desired integer size
OperationEngineException
public ContextVector getContextVector(int site)
throws OperationEngineException
{Number} - site Integer site ID
OperationEngineException
public void updateWithContextVector(int site,
ContextVector cv)
throws OperationEngineException
{Number} - site Integer site ID{ContextVector} - cv Context vector instance
OperationEngineException
public void updateWithOperation(Operation op)
throws OperationEngineException
{Operation} - op Operation with the site ID and context vector
OperationEngineException
public ContextVector getMinimumContextVector()
throws OperationEngineException
OperationEngineException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||