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

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

public class TrueCondition
extends Object
implements WorkflowConditionInstance

Version:
$Revsion$

A simple condition that always returns true when invoked.

Author:
mattmann

Constructor Summary
TrueCondition()
           
 
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

TrueCondition

public TrueCondition()
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.