appl.parallel.spmd
Class SyncPoint

java.lang.Object
  extended by appl.parallel.spmd.SyncPoint

public class SyncPoint
extends Object

Specifies details about a synchronization point. These points are used in the AdvancedSPMDClientController or AdvancedSPMDServerController as preloading-Points or multithread-barriers. They are associated with a priority.

Author:
Dominik Appl

Nested Class Summary
static class SyncPoint.Priority
          A high priority means a high priority on operating system level.
 
Constructor Summary
SyncPoint()
          Creates a new Sync-Point with normal SyncPoint.Priority (and with hashcode as id)
SyncPoint(int pointID)
          Creates a new Sync-Point with normal priority
SyncPoint(int id, SyncPoint.Priority priority)
           
SyncPoint(SyncPoint.Priority priority)
          Creates a new Sync-Point with the given SyncPoint.Priority
 
Method Summary
 int getId()
           
 int getPriority()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncPoint

public SyncPoint(int pointID)
Creates a new Sync-Point with normal priority

Parameters:
pointID - a id for this syncPoint

SyncPoint

public SyncPoint()
Creates a new Sync-Point with normal SyncPoint.Priority (and with hashcode as id)


SyncPoint

public SyncPoint(int id,
                 SyncPoint.Priority priority)
Parameters:
id - a id for the
priority -

SyncPoint

public SyncPoint(SyncPoint.Priority priority)
Creates a new Sync-Point with the given SyncPoint.Priority

Method Detail

getId

public int getId()
Returns:
the id

getPriority

public int getPriority()
Returns:
the priority of the Thread (as system dependent for direct use in Threads)