org.drools.semantics.base
Class IntegerSemaphore

java.lang.Object
  extended by org.drools.semantics.base.IntegerSemaphore
All Implemented Interfaces:
java.io.Serializable, Semaphore

public class IntegerSemaphore
extends java.lang.Object
implements Semaphore

See Also:
Serialized Form

Constructor Summary
IntegerSemaphore(java.lang.String identifier)
           
IntegerSemaphore(java.lang.String identifier, int value)
           
 
Method Summary
 java.lang.String getIdentifier()
           
 int getValue()
           
 void setValue(int value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntegerSemaphore

public IntegerSemaphore(java.lang.String identifier)

IntegerSemaphore

public IntegerSemaphore(java.lang.String identifier,
                        int value)
Method Detail

getIdentifier

public java.lang.String getIdentifier()
Specified by:
getIdentifier in interface Semaphore

setValue

public void setValue(int value)

getValue

public int getValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object