All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.sekmi.histream.etl.MapFeedback Maven / Gradle / Ivy

There is a newer version: 0.13.3
Show newest version
package de.sekmi.histream.etl;

public class MapFeedback {
	private boolean drop;
	private String concept;
	private String value;
	
	public MapFeedback(){
		drop = false;
	}
	public void overrideConcept(String newConcept){
		this.concept = newConcept;
	}
	public void overrideValue(String newValue){
		this.value = newValue;
	}
	public void logWarning(String warning){
		// TODO forward to parse warning handler
		System.err.println("Map warning: "+warning);
	}
	
	// drop the fact, no observation will be generated
	public void dropFact(){
		drop = true;
	}
	
	public String getValueOverride(){
		return value;
	}
	public boolean hasConceptOverride(){
		return concept != null;
	}
	public String getConceptOverride(){
		return concept;
	}
	public boolean isActionDrop(){
		return drop;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy