org.expasy.jpl.commons.base.cond
Interface Condition<T>

All Superinterfaces:
org.apache.commons.collections15.Predicate<T>
All Known Implementing Classes:
ConditionImpl

public interface Condition<T>
extends org.apache.commons.collections15.Predicate<T>

The Condition interface should be implemented by any condition that have to be tested on any T-object.

Version:
1.0
Author:
nikitin

Method Summary
 boolean evaluate(TypedDataContainer input)
           
 Set<String> getDependentVariables()
           
 String getName()
          the name (have to respect the file name convention)
 Operator<?,?> getOperator()
           
 boolean isNotCondition()
           
 void printStackCommands()
          simply print the commands
 
Methods inherited from interface org.apache.commons.collections15.Predicate
evaluate
 

Method Detail

evaluate

boolean evaluate(TypedDataContainer input)
Returns:
true if the input (many possible variables) satisfy the condition

getDependentVariables

Set<String> getDependentVariables()
Returns:
the set of condition-dependent variable names

getOperator

Operator<?,?> getOperator()
Returns:
operator

isNotCondition

boolean isNotCondition()
Returns:
true if the condition is applying the not operator

printStackCommands

void printStackCommands()
simply print the commands


getName

String getName()
the name (have to respect the file name convention)



Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.