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

timeBench.data.UnanchoredTemporalElement Maven / Gradle / Ivy

Go to download

TimeBench, a flexible, easy-to-use, and reusable software library written in Java that provides foundational data structures and algorithms for time- oriented data in Visual Analytics.

The newest version!
package timeBench.data;


/**
 * Unanchored temporal element in the relational view. Following the
 * proxy tuple pattern [Heer & Agrawala, 2006] it provides an object
 * oriented proxy for accessing a row of the temporal elements table.
 * 
 * 

* This class assumes that the underlying data tuple is unanchored, i.e. either * a span or a set with no anchored element. * * @author Rind */ public class UnanchoredTemporalElement extends TemporalElement { /** * relational temporal elements should only be created by the * {@link TemporalDataset} */ protected UnanchoredTemporalElement() { } /* * (non-Javadoc) * * @see timeBench.data.relational.TemporalElement#isAnchored() */ @Override public boolean isAnchored() { return false; } /** * Gets the length of the temporal element. This is the number of granules * in the current granularity. * * @return the length of the temporal element */ @Override public long getLength() { return super.getLong(TemporalElement.INF); } /** * Sets the length of the temporal element. This is the number of granules * in the current granularity. * * @value the length of the temporal element */ @Override public void setLength(long value) { super.setLong(TemporalElement.INF,value); } // TODO do we need setLength --> I don't think so @Override public TemporalElement asPrimitive() { return this; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy