public synchronized boolean checkCondition ( Simon simon , Object ... params ) throws ScriptException { if ( condition == null ) { return true ; } if ( simon instanceof Stopwatch ) { return checkStopwtach ( ( Stopwatch ) simon , params ) ; } if ( simon instanceof Counter ) { return checkCounter ( ( Counter ) simon , params ) ; } return true ; }
Checks the Simon and optional parameters against the condition specified for a rule .