de.cau.cs.kieler.core.kivi
Class UnlockEffect

java.lang.Object
  extended by de.cau.cs.kieler.core.kivi.AbstractEffect
      extended by de.cau.cs.kieler.core.kivi.UnlockEffect
All Implemented Interfaces:
IEffect

public class UnlockEffect
extends AbstractEffect

A simple effect that unlocks a given Object. Can be used to synchronize effects with other objects.

Rating red

Constructor Summary
UnlockEffect(Object unlockTarget)
          Create a new UnlockEffect with a given target on which Object.notifyAll() will be called.
 
Method Summary
 void execute()
          Execute the effect.
 
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractEffect
isMergeable, merge, schedule, scheduleUndo, toString, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnlockEffect

public UnlockEffect(Object unlockTarget)
Create a new UnlockEffect with a given target on which Object.notifyAll() will be called.

Parameters:
unlockTarget - the target to call notifyAll on
Method Detail

execute

public void execute()
Execute the effect.