|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gephi.data.attributes.type.DynamicType<java.lang.Double[]>
org.gephi.data.attributes.type.TimeInterval
public final class TimeInterval
Complex type for specifying time interval. An, interval is two
double
with low
inferior or equal to
high
. Thus intervals can have got included or excluded
bounds.
Field Summary |
---|
Fields inherited from class org.gephi.data.attributes.type.DynamicType |
---|
intervalTree |
Constructor Summary | |
---|---|
TimeInterval()
Constructs a new DynamicType instance with no intervals. |
|
TimeInterval(double low,
double high)
Constructs a new DynamicType instance that contains a given
interval [low , high ]. |
|
TimeInterval(double low,
double high,
boolean lopen,
boolean ropen)
Constructs a new DynamicType instance that contains a given
interval . |
|
TimeInterval(java.util.List<Interval> in)
Constructs a new DynamicType instance with intervals given by
List<Interval> in. |
|
TimeInterval(TimeInterval source)
Constructs a deep copy of source . |
|
TimeInterval(TimeInterval source,
double low,
double high)
Constructs a deep copy of source that contains a given
interval [low , high ]. |
|
TimeInterval(TimeInterval source,
double low,
double high,
boolean lopen,
boolean ropen)
Constructs a deep copy of source that contains a given
interval . |
|
TimeInterval(TimeInterval source,
double alow,
double ahigh,
boolean alopen,
boolean aropen,
double rlow,
double rhigh,
boolean blopen,
boolean bropen)
Constructs a deep copy of source that contains a given
interval [alow , ahigh ]. |
|
TimeInterval(TimeInterval source,
double alow,
double ahigh,
double rlow,
double rhigh)
Constructs a deep copy of source that contains a given
interval [alow , ahigh ]. |
|
TimeInterval(TimeInterval source,
java.util.List<Interval> in)
Constructs a deep copy of source with additional intervals
given by List<Interval> in. |
|
TimeInterval(TimeInterval source,
java.util.List<Interval> in,
java.util.List<Interval> out)
Constructs a deep copy of source with additional intervals
given by List<Interval> in. |
Method Summary | |
---|---|
java.lang.Class |
getUnderlyingType()
Returns the underlying type T . |
java.lang.Double[] |
getValue(Interval interval,
Estimator estimator)
Returns the estimated value of a set of values whose time intervals overlap with a given time interval. |
java.util.List<java.lang.Double[]> |
getValues(Interval interval)
Returns a list of values whose time intervals overlap with a given time interval. |
java.lang.String |
toString()
Returns a string representation of this instance in a format <[low, high], ..., [low, high]> . |
java.lang.String |
toString(boolean timesAsDoubles)
Creates a string representation of all the intervals with their values. |
java.lang.String |
toStringTimesAsDates()
Returns a string representation of this instance in a format <[low, high], ..., [low, high]> . |
Methods inherited from class org.gephi.data.attributes.type.DynamicType |
---|
equals, getHigh, getIntervals, getIntervals, getLow, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hashCode, isHighExcluded, isInRange, isInRange, isLowExcluded |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimeInterval()
DynamicType
instance with no intervals.
public TimeInterval(double low, double high, boolean lopen, boolean ropen)
DynamicType
instance that contains a given
interval
.
low
- the left endpointhigh
- the right endpointlopen
- indicates if the left endpoint is excluded (true in this case)ropen
- indicates if the right endpoint is excluded (true in this case)public TimeInterval(double low, double high)
DynamicType
instance that contains a given
interval
[low
, high
].
low
- the left endpointhigh
- the right endpointpublic TimeInterval(java.util.List<Interval> in)
DynamicType
instance with intervals given by
List<Interval>
in.
in
- intervals to add (could be null)public TimeInterval(TimeInterval source)
source
.
source
- an object to copy from (could be null, then completely new
instance is created)public TimeInterval(TimeInterval source, double low, double high, boolean lopen, boolean ropen)
source
that contains a given
interval
.
source
- an object to copy from (could be null, then completely new
instance is created)low
- the left endpointhigh
- the right endpointlopen
- indicates if the left endpoint is excluded (true in this case)ropen
- indicates if the right endpoint is excluded (true in this case)public TimeInterval(TimeInterval source, double low, double high)
source
that contains a given
interval
[low
, high
].
source
- an object to copy from (could be null, then completely new
instance is created)low
- the left endpointhigh
- the right endpointpublic TimeInterval(TimeInterval source, double alow, double ahigh, boolean alopen, boolean aropen, double rlow, double rhigh, boolean blopen, boolean bropen)
source
that contains a given
interval
[alow
, ahigh
]. Before add it removes
from the newly created object all intervals that overlap with a given
interval
[rlow
, rhigh
].
source
- an object to copy from (could be null, then completely new
instance is created)alow
- the left endpoint of the interval to addahigh
- the right endpoint of the interval to addalopen
- indicates if the left endpoint of the interval to add is excluded (true in this case)aropen
- indicates if the right endpoint of the interval to add is excluded (true in this case)rlow
- the left endpoint of the interval to removerhigh
- the right endpoint of the interval to removeblopen
- indicates if the left endpoint of the interval to remove is excluded (true in this case)bropen
- indicates if the right endpoint of the interval to remove is excluded (true in this case)public TimeInterval(TimeInterval source, double alow, double ahigh, double rlow, double rhigh)
source
that contains a given
interval
[alow
, ahigh
]. Before add it removes
from the newly created object all intervals that overlap with a given
interval
[rlow
, rhigh
].
source
- an object to copy from (could be null, then completely new
instance is created)alow
- the left endpoint of the interval to addahigh
- the right endpoint of the interval to addrlow
- the left endpoint of the interval to removerhigh
- the right endpoint of the interval to removepublic TimeInterval(TimeInterval source, java.util.List<Interval> in)
source
with additional intervals
given by List<Interval>
in.
source
- an object to copy from (could be null, then completely new
instance is created)in
- intervals to add (could be null)public TimeInterval(TimeInterval source, java.util.List<Interval> in, java.util.List<Interval> out)
source
with additional intervals
given by List<Interval>
in. Before add it removes from the
newly created object all intervals that overlap with intervals given by
List<Interval>
out.
source
- an object to copy from (could be null, then completely new
instance is created)in
- intervals to add (could be null)out
- intervals to remove (could be null)Method Detail |
---|
public java.lang.Double[] getValue(Interval interval, Estimator estimator)
DynamicType
getValue
in class DynamicType<java.lang.Double[]>
interval
- a given time intervalestimator
- used to estimate the result
null
if there are no intervals.Estimator
public java.util.List<java.lang.Double[]> getValues(Interval interval)
DynamicType
getValues
in class DynamicType<java.lang.Double[]>
interval
- a given time interval
public java.lang.Class getUnderlyingType()
DynamicType
T
.
getUnderlyingType
in class DynamicType<java.lang.Double[]>
T
.public java.lang.String toString(boolean timesAsDoubles)
DynamicType
toString
in class DynamicType<java.lang.Double[]>
timesAsDoubles
- indicates if times should be shown as doubles or dates
public java.lang.String toStringTimesAsDates()
<[low, high], ..., [low, high]>
. Intervals are
ordered by its left endpoint.
Times are always shown as dates.
public java.lang.String toString()
<[low, high], ..., [low, high]>
. Intervals are
ordered by its left endpoint.
toString
in class DynamicType<java.lang.Double[]>
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |