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

timeBench.data.Instant 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;

import java.util.Collections;

import timeBench.calendar.Granule;

/**
 * Instant 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 an instant. * * @author Rind */ public class Instant extends AnchoredTemporalElement { /** * creates an invalid TemporalElement. Use {@link TemporalDataset} as a * factory! */ protected Instant() { } @Override public Iterable childElements() { // an instant should not have children (speedup?) return Collections. emptyList(); } @Override public int getChildCount() { // an instant should not have children (speedup?) return 0; } public void set(Granule granule) throws TemporalDataException { ((TemporalElementStore) getGraph()).set(this, granule); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy