org.npsnet.xrti
Class SynchronizationPoint

java.lang.Object
  extended byorg.npsnet.xrti.SynchronizationPoint

public class SynchronizationPoint
extends java.lang.Object

SynchronizationPoint represents federation synchronization point.

Author:
Stanislav Kozina

Field Summary
private  FederateHandleSet achievedSet
          The set of federates which achieved synchronization point.
private  java.lang.String synchronizationPointLabel
          Synchronization point label.
private  FederateHandleSet synchronizationSet
          The set of federates to synchronize.
 
Constructor Summary
SynchronizationPoint(java.lang.String synchronizationPointLabel, FederateHandleSet synchronizationSet)
          Creates new synchronization point.
 
Method Summary
 void addSynchronizationPointAchieved(FederateHandle federateHandle)
          Add a federate which achieved synchronization point.
 boolean isSynchronized()
          Returns true if all federates achieved synchronization point, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

synchronizationPointLabel

private java.lang.String synchronizationPointLabel
Synchronization point label.


synchronizationSet

private FederateHandleSet synchronizationSet
The set of federates to synchronize.


achievedSet

private FederateHandleSet achievedSet
The set of federates which achieved synchronization point.

Constructor Detail

SynchronizationPoint

public SynchronizationPoint(java.lang.String synchronizationPointLabel,
                            FederateHandleSet synchronizationSet)
Creates new synchronization point.

Parameters:
synchronizationPointLabel - the label of the synchronization point
synchronizationSet - the set of federates to synchronize
Method Detail

addSynchronizationPointAchieved

public void addSynchronizationPointAchieved(FederateHandle federateHandle)
Add a federate which achieved synchronization point.

Parameters:
federateHandle - handle of federate which achieved synchronization point.

isSynchronized

public boolean isSynchronized()
Returns true if all federates achieved synchronization point, false otherwise.

Returns:
true if all federates achieved synchronization point, false otherwise.