org.apache.oodt.cas.workflow.examples
Class LongCondition

java.lang.Object
  extended by org.apache.oodt.cas.workflow.examples.LongCondition
All Implemented Interfaces:
WorkflowConditionInstance

public class LongCondition
extends Object
implements WorkflowConditionInstance

Version:
$Revision$

A Simple condition that evaluates to false as many times as specified by the dynamic metadata parameter "numFalse". After that, the condition returns true.

Author:
mattmann

Constructor Summary
LongCondition()
           
 
Method Summary
 boolean evaluate(Metadata metadata, WorkflowConditionConfiguration config)
           The actual conditional: this method should return true if the condition is satisfied, otherwise, false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongCondition

public LongCondition()
Method Detail

evaluate

public boolean evaluate(Metadata metadata,
                        WorkflowConditionConfiguration config)
Description copied from interface: WorkflowConditionInstance

The actual conditional: this method should return true if the condition is satisfied, otherwise, false.

Specified by:
evaluate in interface WorkflowConditionInstance
Parameters:
metadata - Any metadata needed by the conditional to determine satisfaction.
Returns:
true if the condition is satisfied, otherwise, false.


Copyright © 1999-2013
Apache OODT. All Rights Reserved.