org.objectweb.jotm.impl.core.conflict
Class LockConversionTable

java.lang.Object
  |
  +--org.objectweb.jotm.impl.core.conflict.LockConversionTable

public class LockConversionTable
extends java.lang.Object

Lock conversion table is a mean for converting a mode by which a lock is acquired. The class implements the lock conversion table that calculates suprema of given lock modes from the given conflict table.


Constructor Summary
LockConversionTable(ConflictTable iConflictTable)
          Constructs a lock conversion table based on the given conflict table.
 
Method Summary
 java.lang.String getSupremum(java.lang.String requestMode, java.lang.String holdMode)
          Gets supremum of the given lock modes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockConversionTable

public LockConversionTable(ConflictTable iConflictTable)
Constructs a lock conversion table based on the given conflict table.

Parameters:
iConflictTable - conflict table
Method Detail

getSupremum

public java.lang.String getSupremum(java.lang.String requestMode,
                                    java.lang.String holdMode)
                             throws NoSupremumException
Gets supremum of the given lock modes.

Parameters:
requestMode - requested lock mode
holdMode - acquired lock mode
Returns:
supremum lock mode
Throws:
NoSupremumException - if supremum does not exist for given lock modes