package timeBench.calendar;

import timeBench.data.TemporalDataException;

/**
 * 
 * 
 * <p>
 * Added:          / TL<br>
 * Modifications: 
 * </p>
 * 
 * @author Tim Lammarsch
 *
 */
public class Granule {
	private Long inf = null;
	private Long sup = null;
	private Long count = null;
	private String label = null;
	private Granularity granularity = null;
	
	Granule(long inf,long sup,Granularity granularity) {
		this.inf = inf;
		this.sup = sup;
		this.granularity = granularity;
	}
	
	Granule(long count,Granularity granularity) {
		this.count = count;
		this.granularity = granularity;
		}
	
	long getInf() throws TemporalDataException {
		if (inf == null)
			throw new TemporalDataException("Conversion of granule count to inf not implemented yet.");
		else
			return inf;
	}
	
	long getSup() throws TemporalDataException {
		if (sup == null)
			throw new TemporalDataException("Conversion of granule count to sup not implemented yet.");
		else
			return sup;
	}
}

@@ -618,32 +618,39 @@
 rity;%0D%0A%09%09%7D%0D%0A%09%0D%0A%09
+public 
 long getInf() th
@@ -827,16 +827,23 @@
 %09%7D%0D%0A%09%0D%0A%09
+public 
 long get

make getInf/Sup public in granule