|
CESE 1.4.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.simulogic.dataview.DataChannel
public class DataChannel
Class that represents one data set (channel)
| Constructor Summary | |
|---|---|
DataChannel()
Default constructor |
|
DataChannel(java.lang.String name,
int recs)
Creates new DataChannel |
|
| Method Summary | |
|---|---|
ChannelAttribute |
getAttribute()
Returns attribute of this channel |
double |
getData(int inc)
Returns value for given index in data array |
java.lang.String |
getName()
Returns name of this channel |
AbstractPlot |
getPlot()
Returns channel plot |
java.lang.String |
getUnits()
Returns units of this channel |
void |
grow(int inc)
Grows data array by a specific number of data points |
double |
maxLimit()
Returns the largest value in data array |
double |
minLimit()
Returns the smallest value in data array |
void |
setAttribute(ChannelAttribute attribute)
Sets attribute for this channel |
void |
setData(int inc,
double val)
Sets value at the given index in data array |
void |
setName(java.lang.String name)
Sets name for this channel |
void |
setPlot(AbstractPlot plot)
Sets plot for this channel |
void |
setUnits(java.lang.String units)
Sets units for this channel |
int |
size()
Returns size of the data array |
java.lang.String |
toString()
Returns the string (ASCII) representation of the data contained in this channel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataChannel()
public DataChannel(java.lang.String name,
int recs)
name - name of the channelrecs - number of records in the channel| Method Detail |
|---|
public double minLimit()
public double maxLimit()
public java.lang.String getName()
public void setName(java.lang.String name)
name - new channel namepublic java.lang.String getUnits()
public void setUnits(java.lang.String units)
units - new channel unitspublic AbstractPlot getPlot()
public void setPlot(AbstractPlot plot)
plot - new channel plotpublic ChannelAttribute getAttribute()
public void setAttribute(ChannelAttribute attribute)
attribute - new channel attributepublic int size()
public double getData(int inc)
throws java.lang.ArrayIndexOutOfBoundsException
inc - index in the array
java.lang.ArrayIndexOutOfBoundsException - when index is wrong
public void setData(int inc,
double val)
throws java.lang.ArrayIndexOutOfBoundsException
inc - index in the arrayval - new data value
java.lang.ArrayIndexOutOfBoundsException - when index is wrongpublic void grow(int inc)
inc - increment for data array sizepublic java.lang.String toString()
toString in class java.lang.Object
|
CESE 1.4.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||