Package com.rs.seagull.emulator.api
Class AbstractCondition
java.lang.Object
com.rs.seagull.emulator.api.AbstractCondition
- All Implemented Interfaces:
Condition
- Direct Known Subclasses:
PropertyCondition
The base class for all property conditions.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanUp()
Clean up, e.g.abstract void
setTrigger
(Semaphore semaphore, BareSession session) Set the trigger condition.
-
Field Details
-
semaphore
A semaphore to wait for a condition.
-
-
Constructor Details
-
AbstractCondition
public AbstractCondition()
-
-
Method Details
-
setTrigger
Set the trigger condition.- Parameters:
semaphore
- the semaphore to wait for a conditionsession
- the session for which to wait for the condition
-
cleanUp
public void cleanUp()Clean up, e.g. remove listeners.
-