org.ojalgo.series
Class CalendarRandomSeries

java.lang.Object
  extended by org.ojalgo.series.CalendarRandomSeries
All Implemented Interfaces:
Map<Calendar,RandomNumber>, SortedMap<Calendar,RandomNumber>, BasicSeries<Calendar,RandomNumber>, TimeSeries<Calendar,RandomNumber>

public final class CalendarRandomSeries
extends Object


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
CalendarRandomSeries(TimeUnit aResolution)
           
 
Method Summary
 void clear()
           
 BasicSeries<EK,V> colour(Color aPaint)
           
 Comparator<? super EK> comparator()
           
 boolean containsKey(Object aKey)
           
 boolean containsValue(Object aValue)
           
 Set<Map.Entry<EK,V>> entrySet()
           
 boolean equals(Object someO)
           
 EK firstKey()
           
 V firstValue()
           
 V get(Object aKey)
           
 Color getColour()
           
 CalendarRandomSeries getHeadSeries(Calendar aToKey)
           
 EK[] getKeys()
           
 String getName()
           
 long[] getPrimitiveKeys()
           
 double[] getPrimitiveValues()
           
 TimeUnit getResolution()
           
 CalendarRandomSeries getSubSeries(Calendar aFromKey, Calendar aToKey)
           
 CalendarRandomSeries getTailSeries(Calendar aFromKey)
           
 V getValue(EK aKey)
           
 V[] getValues()
           
 int hashCode()
           
 SortedMap<EK,V> headMap(EK aToKey)
           
 boolean isEmpty()
           
 Set<EK> keySet()
           
 EK lastKey()
           
 V lastValue()
           
 void modify(UnaryFunction<V> aFunc)
           
 BasicSeries<EK,V> name(String aName)
           
 void normalise(EK aKey, V aNormValue)
           
 V put(EK aKey, V aValue)
           
 void putAll(Map<? extends EK,? extends V> someValues)
           
 TimeSeries<EK,V> reconstruct(EK aFromKey, EK aToKey, TimeUnit aResolution)
           
 V remove(Object aKey)
           
 void setColour(Color aPaint)
           
 void setName(String aName)
           
 void setValue(EK aKey, V aValue)
           
 void setValues(Map<EK,V> someValues)
           
 int size()
           
 Calendar step(Calendar anExternalKey)
          Will increment the input key to the next expected "value".
 SortedMap<EK,V> subMap(EK aFromKey, EK aToKey)
           
 SortedMap<EK,V> tailMap(EK aFromKey)
           
 String toString()
           
 Collection<V> values()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ojalgo.series.BasicSeries
colour, firstValue, getColour, getKeys, getName, getValue, getValues, lastValue, modify, name, normalise, setColour, setName, setValue, setValues
 
Methods inherited from interface java.util.SortedMap
comparator, firstKey, headMap, lastKey, subMap, tailMap
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

CalendarRandomSeries

public CalendarRandomSeries(TimeUnit aResolution)
Method Detail

getHeadSeries

public CalendarRandomSeries getHeadSeries(Calendar aToKey)

getSubSeries

public CalendarRandomSeries getSubSeries(Calendar aFromKey,
                                         Calendar aToKey)

getTailSeries

public CalendarRandomSeries getTailSeries(Calendar aFromKey)

step

public final Calendar step(Calendar anExternalKey)
Description copied from interface: TimeSeries
Will increment the input key to the next expected "value".


getPrimitiveKeys

public final long[] getPrimitiveKeys()
Specified by:
getPrimitiveKeys in interface TimeSeries<EK extends Comparable<EK>,V extends Number>

getPrimitiveValues

public final double[] getPrimitiveValues()
Specified by:
getPrimitiveValues in interface TimeSeries<EK extends Comparable<EK>,V extends Number>

getResolution

public final TimeUnit getResolution()
Specified by:
getResolution in interface TimeSeries<EK extends Comparable<EK>,V extends Number>

reconstruct

public final TimeSeries<EK,V> reconstruct(EK aFromKey,
                                          EK aToKey,
                                          TimeUnit aResolution)
Specified by:
reconstruct in interface TimeSeries<EK extends Comparable<EK>,V extends Number>

toString

public String toString()

clear

public void clear()
Specified by:
clear in interface Map<EK extends Comparable<EK>,V extends Number>

colour

public final BasicSeries<EK,V> colour(Color aPaint)
Specified by:
colour in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

comparator

public Comparator<? super EK> comparator()
Specified by:
comparator in interface SortedMap<EK extends Comparable<EK>,V extends Number>

containsKey

public boolean containsKey(Object aKey)
Specified by:
containsKey in interface Map<EK extends Comparable<EK>,V extends Number>

containsValue

public boolean containsValue(Object aValue)
Specified by:
containsValue in interface Map<EK extends Comparable<EK>,V extends Number>

entrySet

public Set<Map.Entry<EK,V>> entrySet()
Specified by:
entrySet in interface Map<EK extends Comparable<EK>,V extends Number>

equals

public boolean equals(Object someO)
Specified by:
equals in interface Map<EK extends Comparable<EK>,V extends Number>
Overrides:
equals in class Object

firstKey

public EK firstKey()
Specified by:
firstKey in interface SortedMap<EK extends Comparable<EK>,V extends Number>

firstValue

public V firstValue()
Specified by:
firstValue in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

get

public V get(Object aKey)
Specified by:
get in interface Map<EK extends Comparable<EK>,V extends Number>

getColour

public Color getColour()
Specified by:
getColour in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

getKeys

public EK[] getKeys()
Specified by:
getKeys in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

getName

public String getName()
Specified by:
getName in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

getValue

public V getValue(EK aKey)
Specified by:
getValue in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

getValues

public V[] getValues()
Specified by:
getValues in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<EK extends Comparable<EK>,V extends Number>
Overrides:
hashCode in class Object

headMap

public SortedMap<EK,V> headMap(EK aToKey)
Specified by:
headMap in interface SortedMap<EK extends Comparable<EK>,V extends Number>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<EK extends Comparable<EK>,V extends Number>

keySet

public Set<EK> keySet()
Specified by:
keySet in interface Map<EK extends Comparable<EK>,V extends Number>

lastKey

public EK lastKey()
Specified by:
lastKey in interface SortedMap<EK extends Comparable<EK>,V extends Number>

lastValue

public V lastValue()
Specified by:
lastValue in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

modify

public void modify(UnaryFunction<V> aFunc)
Specified by:
modify in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

name

public final BasicSeries<EK,V> name(String aName)
Specified by:
name in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

normalise

public void normalise(EK aKey,
                      V aNormValue)
Specified by:
normalise in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

put

public V put(EK aKey,
             V aValue)
Specified by:
put in interface Map<EK extends Comparable<EK>,V extends Number>

putAll

public void putAll(Map<? extends EK,? extends V> someValues)
Specified by:
putAll in interface Map<EK extends Comparable<EK>,V extends Number>

remove

public V remove(Object aKey)
Specified by:
remove in interface Map<EK extends Comparable<EK>,V extends Number>

setColour

public void setColour(Color aPaint)
Specified by:
setColour in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

setName

public void setName(String aName)
Specified by:
setName in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

setValue

public void setValue(EK aKey,
                     V aValue)
Specified by:
setValue in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

setValues

public void setValues(Map<EK,V> someValues)
Specified by:
setValues in interface BasicSeries<EK extends Comparable<EK>,V extends Number>

size

public int size()
Specified by:
size in interface Map<EK extends Comparable<EK>,V extends Number>

subMap

public SortedMap<EK,V> subMap(EK aFromKey,
                              EK aToKey)
Specified by:
subMap in interface SortedMap<EK extends Comparable<EK>,V extends Number>

tailMap

public SortedMap<EK,V> tailMap(EK aFromKey)
Specified by:
tailMap in interface SortedMap<EK extends Comparable<EK>,V extends Number>

values

public Collection<V> values()
Specified by:
values in interface Map<EK extends Comparable<EK>,V extends Number>