public class DefaultSerialInfo extends Object implements SerialInfo
| Modifier and Type | Field and Description |
|---|---|
static int |
RANGES |
static int |
SINGLE_VALUES |
DATE, NUMERIC| Constructor and Description |
|---|
DefaultSerialInfo() |
DefaultSerialInfo(String timeFormat) |
DefaultSerialInfo(Time time,
String description,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(double value)
Adds a new time value in the array.
|
void |
addValue(String value)
Adds a new time value in the array.
|
int |
getDataType()
Gets the data type
|
String |
getDescription()
Gets the description
|
String |
getSerialName()
Gets the serial name
|
ArrayList<?> |
getTime()
Gets the list of dates
|
String |
getTimeInfo(int pos)
Gets a string which represents a time information for that position.
|
int |
getTimeType()
Gets the time type
|
boolean |
isInRange(SerialInfo tInfo)
Returns true if the range selected in the parameters is
inside the current.
|
void |
setDataType(int dataType)
Sets the data type
|
void |
setDescription(String description)
Sets the description
|
void |
setSerialName(String serialName)
Sets the serial name
|
void |
setTime(ArrayList<?> time)
Sets the list of dates
|
void |
setTimeType(int timeType)
Sets the time type
|
void |
setTimeType(String timeType)
Sets the time type
|
public static final int SINGLE_VALUES
public static final int RANGES
public DefaultSerialInfo()
public DefaultSerialInfo(String timeFormat)
public DefaultSerialInfo(Time time, String description, String name) throws ParseException
ParseExceptionpublic String getSerialName()
SerialInfogetSerialName in interface SerialInfopublic void setSerialName(String serialName)
SerialInfosetSerialName in interface SerialInfopublic ArrayList<?> getTime()
SerialInfogetTime in interface SerialInfopublic void setTime(ArrayList<?> time)
SerialInfosetTime in interface SerialInfopublic int getTimeType()
SerialInfogetTimeType in interface SerialInfopublic void setTimeType(int timeType)
SerialInfosetTimeType in interface SerialInfopublic int getDataType()
SerialInfogetDataType in interface SerialInfopublic void setDataType(int dataType)
SerialInfosetDataType in interface SerialInfopublic void setTimeType(String timeType)
SerialInfosetTimeType in interface SerialInfopublic void addValue(String value) throws ParseException
SerialInfoaddValue in interface SerialInfoParseExceptionpublic void addValue(double value)
SerialInfoaddValue in interface SerialInfopublic String getTimeInfo(int pos)
SerialInfogetTimeInfo in interface SerialInfopublic String getDescription()
SerialInfogetDescription in interface SerialInfopublic void setDescription(String description)
SerialInfosetDescription in interface SerialInfopublic boolean isInRange(SerialInfo tInfo)
SerialInfoisInRange in interface SerialInfo