timeBench.data.expression.TemporalElementExpression Maven / Gradle / Ivy
package timeBench.data.expression;
import prefuse.data.Schema;
import prefuse.data.Tuple;
import prefuse.data.expression.AbstractExpression;
import timeBench.data.TemporalElement;
import timeBench.data.TemporalObject;
/**
*
*
*
* Added: / TL
* Modifications:
*
*
* @author Tim Lammarsch
*
*/
public class TemporalElementExpression extends TemporalExpression {
/* (non-Javadoc)
* @see prefuse.data.expression.Expression#getType(prefuse.data.Schema)
*/
@Override
public Class getType(Schema s) {
return TemporalElement.class;
}
public Object get(Tuple t) {
if (t instanceof TemporalObject)
return ((TemporalObject)t).getTemporalElement();
else
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy