|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<XY_DataSet>
org.opensha.commons.data.function.XY_DataSetList
public class XY_DataSetList
Title: XY_DataSetList
Description: List container for XY Datasets. This class stores XY_DataSetAPI ( and any subclass ) internally in an array list and provides standard list access functions such as (paraphrasing) get(), set(), delete(), iterator(), size(), etc.
Currently any type of XY_DataSetAPI is allowed in the list. Subclasses can overide isFunctionAllowed() to provide added constraints on what can belong in this list.
Note: Since this class behaves like an ArrayList, functions in the list may be accessed by index, or by iterator.
| Field Summary | |
|---|---|
protected static String |
C
|
protected static boolean |
D
|
protected String |
info
Every function list has a information string that can be used in displays, etc. |
protected String |
name
Every function list have a name for identifying it amoung several |
protected String |
xAxisName
The X-Axis name, may be the same for all items in the list. |
protected String |
yAxisName
The Y-Axis name, may be the same for all items in the list. |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
XY_DataSetList()
no arg constructor, this constructor currently is empty. |
|
| Method Summary | |
|---|---|
XY_DataSetList |
deepClone()
Returns a copy of this list, therefore any changes to the copy cannot affect this original list. |
boolean |
equals(Object list)
Returns true if all the DisctetizedFunctions in this list are equal. |
String |
getInfo()
Returns the info of this list |
String |
getName()
Returns the name of this list |
String |
getXAxisName()
Returns the xAxisName of this list |
String |
getXYAxesName()
Combo Name of the X and Y axis, used for determining if two DiscretizedFunction2DAPIs represent the same thing. |
String |
getYAxisName()
Returns the yAxisName of this list |
void |
setInfo(String info)
Sets the info of this list |
void |
setName(String name)
Sets the name of this list |
void |
setXAxisName(String name)
Sets the xAxisName of this list |
void |
setYAxisName(String name)
Sets the yAxisName of this list |
String |
toString()
Debugging information. |
String |
toStringOld()
Returns all datapoints in a matrix, x values in first column, first functions y vaules in second, second function's y values in the third, etc. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Field Detail |
|---|
protected static final String C
protected static final boolean D
protected String info
protected String name
protected String xAxisName
SWR: Not sure if this is needed any more. Have to check into is.
protected String yAxisName
SWR: Not sure if this is needed any more. Have to check into is.
| Constructor Detail |
|---|
public XY_DataSetList()
| Method Detail |
|---|
public String getName()
public void setName(String name)
public String getInfo()
public void setInfo(String info)
public String getXAxisName()
public void setXAxisName(String name)
public String getYAxisName()
public void setYAxisName(String name)
public String getXYAxesName()
public boolean equals(Object list)
equals in interface Collection<XY_DataSet>equals in interface List<XY_DataSet>equals in class AbstractList<XY_DataSet>public XY_DataSetList deepClone()
public String toString()
This is the function called to format the data for raw data display in the IMRTesterApplet.
Note: SWR: Still needs work to reformat the data better. Currently output is x, y for each function seperatly. A better output format would be in spreadsheet format, since all functions in the IMRTesterApplet share the same x values. Currently not implemented.
toString in class AbstractCollection<XY_DataSet>public String toStringOld()
Note: SWR This function has been renamed from toString(). This function no longer works, but contains the formatting rules needed to still be imploemented by toString().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||