Package com.powsybl.timeseries
Class RegularTimeSeriesIndex
- java.lang.Object
-
- com.powsybl.timeseries.AbstractTimeSeriesIndex
-
- com.powsybl.timeseries.RegularTimeSeriesIndex
-
- All Implemented Interfaces:
TimeSeriesIndex
,Iterable<Instant>
public class RegularTimeSeriesIndex extends AbstractTimeSeriesIndex
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description RegularTimeSeriesIndex(long startTime, long endTime, long spacing)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RegularTimeSeriesIndex
create(Instant start, Instant end, Duration spacing)
static RegularTimeSeriesIndex
create(org.threeten.extra.Interval interval, Duration spacing)
boolean
equals(Object obj)
long
getEndTime()
int
getPointCount()
long
getSpacing()
long
getStartTime()
long
getTimeAt(int point)
String
getType()
int
hashCode()
Iterator<Instant>
iterator()
static RegularTimeSeriesIndex
parseJson(com.fasterxml.jackson.core.JsonParser parser)
Stream<Instant>
stream()
String
toString()
void
writeJson(com.fasterxml.jackson.core.JsonGenerator generator)
-
Methods inherited from class com.powsybl.timeseries.AbstractTimeSeriesIndex
getInstantAt, toJson
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static RegularTimeSeriesIndex create(Instant start, Instant end, Duration spacing)
-
create
public static RegularTimeSeriesIndex create(org.threeten.extra.Interval interval, Duration spacing)
-
parseJson
public static RegularTimeSeriesIndex parseJson(com.fasterxml.jackson.core.JsonParser parser)
-
getStartTime
public long getStartTime()
-
getEndTime
public long getEndTime()
-
getSpacing
public long getSpacing()
-
getPointCount
public int getPointCount()
-
getTimeAt
public long getTimeAt(int point)
-
getType
public String getType()
-
writeJson
public void writeJson(com.fasterxml.jackson.core.JsonGenerator generator)
-
-