|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.AbstractEngine
com.kuka.roboticsAPI.concurrencyModel.SyncManager
public final class SyncManager
This class provides access to context-global critial areas and sync handles. Each area or handle is identified through a name. If any other thread tries to access the same area, it has to wait until no other thread is in this area.
Be careful because if you do not type the correct name for each thread trying to access to lock, the locking will not work.
| Constructor Summary | |
|---|---|
SyncManager(RoboticsAPIContext context)
Creates a new SyncManager. |
|
| Method Summary | |
|---|---|
CriticalArea |
getCriticalArea(String name)
Gets the critical area identified by the given name. |
Class<? extends IEngine> |
getEngineType()
Gets the type of the engine. |
SyncHandle |
getSyncHandle(String name)
Gets a sync handle with the specified name. |
SyncHandle |
initSyncHandle(String syncHandleName,
int count)
Initializes a sync handle. |
void |
removeCriticalArea(String name)
Removes the critical area with the given name. |
void |
removeSyncHandle(String syncHandleName)
Removes the sync handle with the given name. |
| Methods inherited from class com.kuka.roboticsAPI.AbstractEngine |
|---|
dispose, getContext, initialize, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.kuka.roboticsAPI.IEngine |
|---|
dispose, getContext, initialize, setParameters |
| Constructor Detail |
|---|
public SyncManager(RoboticsAPIContext context)
context - The context of the manager.| Method Detail |
|---|
public SyncHandle initSyncHandle(String syncHandleName,
int count)
initSyncHandle in interface ISyncManagersyncHandleName - name for the new handle.count - number of threads that the new handle can block.
public SyncHandle getSyncHandle(String name)
getSyncHandle in interface ISyncManagername - name of a handle.
null.public void removeSyncHandle(String syncHandleName)
removeSyncHandle in interface ISyncManagersyncHandleName - The name of the sync handle.public CriticalArea getCriticalArea(String name)
getCriticalArea in interface ISyncManagername - The name of the critical area.
public void removeCriticalArea(String name)
removeCriticalArea in interface ISyncManagername - The name of the critical area.public Class<? extends IEngine> getEngineType()
getEngineType in interface IEnginegetEngineType in class AbstractEngine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||