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

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
 

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.