coordination
Aspect Coordinator

java.lang.Object
  extended bycoordination.Coordinator
Direct Known Subclasses:
GameSynchronization, RegistrySynchronization

public abstract class Coordinator
extends java.lang.Object


Pointcut Summary
protected synchronizationPoint()
 

 

Advice Summary
before(): synchronizationPoint..
 
 Advises:spacewar.Display1.paintObjects, spacewar.Display2.paintObjects, spacewar.Game.resetShips, spacewar.Game.newPlayer, spacewar.Game.newRobot, spacewar.Game.clockTick, spacewar.Game.handleCollisions, spacewar.Registry.dummy, spacewar.Robot.run, spacewar.SpaceObject, spacewar.SpaceObject.die
after(): synchronizationPoint..
 
 Advises:spacewar.Display1.paintObjects, spacewar.Display2.paintObjects, spacewar.Game.resetShips, spacewar.Game.newPlayer, spacewar.Game.newRobot, spacewar.Game.clockTick, spacewar.Game.handleCollisions, spacewar.Registry.dummy, spacewar.Robot.run, spacewar.SpaceObject, spacewar.SpaceObject.die

 

Constructor Summary
Coordinator()
          
 
Method Summary
 void addMutex(java.lang.String[] methNames)
          
 void addSelfex(java.lang.String methName)
          
 void guardedEntry(java.lang.String methName)
          
 void guardedEntry(java.lang.String methName, Condition condition)
          
 void guardedEntry(java.lang.String methName, Condition condition, CoordinationAction action)
          
 void guardedEntry(java.lang.String methName, CoordinationAction action)
          
 void guardedEntryWithTimeout(java.lang.String methName, Condition condition, CoordinationAction action, long millis)
          
 void guardedEntryWithTimeout(java.lang.String methName, Condition condition, long millis)
          
 void guardedEntryWithTimeout(java.lang.String methName, CoordinationAction action, long millis)
          
 void guardedEntryWithTimeout(java.lang.String methName, long millis)
          
 void guardedExit(java.lang.String methName)
          
 void guardedExit(java.lang.String methName, CoordinationAction action)
          
 void removeMutex(java.lang.String[] methNames)
          
 void removeSelfex(java.lang.String methName)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

 

Pointcut Detail

synchronizationPoint()

 

Advice Detail

before

before(): synchronizationPoint..

 Advises:spacewar.Display1.paintObjects, spacewar.Display2.paintObjects, spacewar.Game.resetShips, spacewar.Game.newPlayer, spacewar.Game.newRobot, spacewar.Game.clockTick, spacewar.Game.handleCollisions, spacewar.Registry.dummy, spacewar.Robot.run, spacewar.SpaceObject, spacewar.SpaceObject.die


after

after(): synchronizationPoint..

 Advises:spacewar.Display1.paintObjects, spacewar.Display2.paintObjects, spacewar.Game.resetShips, spacewar.Game.newPlayer, spacewar.Game.newRobot, spacewar.Game.clockTick, spacewar.Game.handleCollisions, spacewar.Registry.dummy, spacewar.Robot.run, spacewar.SpaceObject, spacewar.SpaceObject.die

Constructor Detail

Coordinator

public Coordinator()

Method Detail

addSelfex

public void addSelfex(java.lang.String methName)


removeSelfex

public void removeSelfex(java.lang.String methName)


addMutex

public void addMutex(java.lang.String[] methNames)


removeMutex

public void removeMutex(java.lang.String[] methNames)


guardedEntry

public void guardedEntry(java.lang.String methName)


guardedEntry

public void guardedEntry(java.lang.String methName,
                         Condition condition)


guardedEntry

public void guardedEntry(java.lang.String methName,
                         CoordinationAction action)


guardedEntry

public void guardedEntry(java.lang.String methName,
                         Condition condition,
                         CoordinationAction action)


guardedEntryWithTimeout

public void guardedEntryWithTimeout(java.lang.String methName,
                                    long millis)
                             throws TimeoutException

Throws:
TimeoutException

guardedEntryWithTimeout

public void guardedEntryWithTimeout(java.lang.String methName,
                                    Condition condition,
                                    long millis)
                             throws TimeoutException

Throws:
TimeoutException

guardedEntryWithTimeout

public void guardedEntryWithTimeout(java.lang.String methName,
                                    CoordinationAction action,
                                    long millis)
                             throws TimeoutException

Throws:
TimeoutException

guardedEntryWithTimeout

public void guardedEntryWithTimeout(java.lang.String methName,
                                    Condition condition,
                                    CoordinationAction action,
                                    long millis)
                             throws TimeoutException

Throws:
TimeoutException

guardedExit

public void guardedExit(java.lang.String methName)


guardedExit

public void guardedExit(java.lang.String methName,
                        CoordinationAction action)