|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisidia.simulation.process.algorithm.Algorithm
visidia.simulation.process.synchronization.SynchronizationAlgorithm
public abstract class SynchronizationAlgorithm
all synchronization algorithms should extend this class.
| Field Summary | |
|---|---|
protected int[] |
answer
The answer. |
protected SynchronizationObject |
synob
The synchronization object. |
| Fields inherited from class visidia.simulation.process.algorithm.Algorithm |
|---|
proc |
| Constructor Summary | |
|---|---|
SynchronizationAlgorithm()
Instantiates a new synchronization algorithm. |
|
SynchronizationAlgorithm(SynchronizationAlgorithm algo)
Instantiates a new synchronization algorithm. |
|
| Method Summary | |
|---|---|
void |
breakSynchro()
Breaks synchronization. |
abstract java.lang.Object |
clone()
|
java.util.Collection<MessageType> |
getListTypes()
Gets the list types. |
protected int |
getRandomConnectedDoor()
Randomly gets a connected door. |
SynchronizationObject |
getSynchronizationObject()
Gets the synchronization object. |
void |
init()
This method is executed by the node. |
void |
setSynchronizationObject(SynchronizationObject synObj)
Sets the synchronization object. |
java.lang.String |
toString()
|
abstract void |
trySynchronize()
Try synchronize. |
| Methods inherited from class visidia.simulation.process.algorithm.Algorithm |
|---|
getArity, getDescription, getEdgeProperty, getId, getMessageTypeList, getNetSize, getOrientedDoors, getProperty, isIncomingDoor, isOutgoingDoor, putProperty, putProperty, receive, receiveFrom, receiveFrom, run, sendAll, sendTo, setDoorState, setEdgeProperty, setMessageProcess |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int[] answer
protected SynchronizationObject synob
| Constructor Detail |
|---|
public SynchronizationAlgorithm()
public SynchronizationAlgorithm(SynchronizationAlgorithm algo)
algo - the algorithm| Method Detail |
|---|
public abstract java.lang.Object clone()
clone in class Algorithmpublic abstract void trySynchronize()
public SynchronizationObject getSynchronizationObject()
public void setSynchronizationObject(SynchronizationObject synObj)
synObj - the new synchronization objectprotected final int getRandomConnectedDoor()
public java.util.Collection<MessageType> getListTypes()
public java.lang.String toString()
toString in class java.lang.Objectpublic void breakSynchro()
public void init()
Algorithm
init in class Algorithm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||