com.rapidminer.operator.annotation
Interface ResourceConsumptionEstimator

All Known Implementing Classes:
ExampleSetResourceConsumptionEstimator, PolynomialExampleSetResourceConsumptionEstimator

public interface ResourceConsumptionEstimator

Estimates the resource consumption (CPU time and memory usage) of an Operator based on its current input. The methods in this interface do not take any arguments. Instead, they are backed by an operator and consider its current input.

Author:
Simon Fischer

Method Summary
 long estimateMemoryConsumption()
          Returns the estimated number of bytes required when executing this operator.
 long estimateRuntime()
          Returns the estimated number of CPU-cycles.
 PolynomialFunction getCpuFunction()
          Returns the cpu function.
 PolynomialFunction getMemoryFunction()
          Returns the memory function.
 

Method Detail

estimateRuntime

long estimateRuntime()
Returns the estimated number of CPU-cycles. If, for any reason, computation is impossible, -1 should be returned.


estimateMemoryConsumption

long estimateMemoryConsumption()
Returns the estimated number of bytes required when executing this operator. If, for any reason, computation is impossible, -1 should be returned.


getCpuFunction

PolynomialFunction getCpuFunction()
Returns the cpu function.


getMemoryFunction

PolynomialFunction getMemoryFunction()
Returns the memory function.



Copyright © 2001-2009 by Rapid-I