init
This commit is contained in:
28
src/org/fog/application/selectivity/SelectivityModel.java
Normal file
28
src/org/fog/application/selectivity/SelectivityModel.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package org.fog.application.selectivity;
|
||||
|
||||
/**
|
||||
* Class representing the input-output relationships of application modules.
|
||||
* @author Harshit Gupta
|
||||
*
|
||||
*/
|
||||
public interface SelectivityModel {
|
||||
|
||||
/**
|
||||
* Function called to check whether incoming tuple can generate an output tuple.
|
||||
* @return true if a tuple can be emitted (selection possible)
|
||||
*/
|
||||
public boolean canSelect();
|
||||
|
||||
/**
|
||||
* Average number of tuples generated per incoming input tuple.
|
||||
* @return avg tuple generation rate
|
||||
*/
|
||||
public double getMeanRate();
|
||||
|
||||
/**
|
||||
* Maximum number of tuples generated per incoming input tuple.
|
||||
* @return max tuple generation rate
|
||||
*/
|
||||
public double getMaxRate();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user