public interface ITimeKeyManager
| Modifier and Type | Method and Description |
|---|---|
Set<Long> |
getHeldKeys()
Returns an immutable collection of currently held timeKeys.
|
String |
getHeldKeysStr()
Returns an immutable collection of currently held timeKeys as string.
|
boolean |
isLocked(long time)
True if the provided timeKey is explicitly locked (lock(key) was called).
|
boolean |
isLocked(TimeKey key)
True if the provided timeKey is explicitly locked (lock(key) was called).
|
void |
lock(long time)
Locks some "time" (or increment lock number if existing lock exists).
|
void |
unlock(long key)
Unlocks some "time".
|
void |
unlockAll()
Unlock all times.
|
void |
unlockAll(long time)
Completely unlocks one time (regardless number of locks held).
|
void lock(long time)
time - boolean isLocked(TimeKey key)
key - boolean isLocked(long time)
time - void unlock(long key)
throws TimeKeyNotLockedException
key - TimeKeyNotLockedExceptionvoid unlockAll(long time)
throws TimeKeyNotLockedException
time - TimeKeyNotLockedExceptionvoid unlockAll()
Set<Long> getHeldKeys()
String getHeldKeysStr()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.