public class SequenceProfile
extends TableDataset
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COLUMN_NAME_OFFSET
Offset
|
static java.lang.String |
COLUMN_NAME_TYPE
Type
|
static java.lang.String |
COLUMN_NAME_VALUE
Value
|
static java.lang.String |
PROFILE_TYPE_DR
DR
|
static java.lang.String |
PROFILE_TYPE_PW
PW
|
Constructor and Description |
---|
SequenceProfile(java.lang.String profileType,
java.lang.String profileOffset,
double profileValue)
Creates a new sequence profile
|
Modifier and Type | Method and Description |
---|---|
boolean |
equal(SequenceProfile sq) |
int |
getOffSetSeconds()
Get the offset as number of seconds
|
java.lang.String |
getOffSetString()
Get the offset as string
|
java.lang.String |
getType()
Get the profile type (PW or DR)
|
double |
getValue()
Get the value of this profile
|
protected org.w3c.dom.Element |
getXMLElement(org.w3c.dom.Document doc) |
void |
setOffSetSeconds(int profileOffSetSeconds)
Set the profile offset as number of seconds
|
void |
setOffSetString(java.lang.String profileOffSet)
Set the profile offset as string
|
void |
setType(java.lang.String profileType)
Set the profile type (PW or DR)
|
void |
setValue(float profileValue)
Set the profile value
|
java.lang.String |
toXml()
Generate an xml representation of this profile
|
java.lang.String |
toXml(int indent)
get a xml representation of this profile with a given indentation
|
public static java.lang.String PROFILE_TYPE_DR
public static java.lang.String PROFILE_TYPE_PW
public static java.lang.String COLUMN_NAME_TYPE
public static java.lang.String COLUMN_NAME_OFFSET
public static java.lang.String COLUMN_NAME_VALUE
public SequenceProfile(java.lang.String profileType, java.lang.String profileOffset, double profileValue)
profileType
- profile type, PW or DRprofileOffset
- offset (time after execution) that this profile will start to be validprofileValue
- value of this profilepublic java.lang.String getType()
public double getValue()
public java.lang.String getOffSetString()
public int getOffSetSeconds()
public void setType(java.lang.String profileType)
profileType
- public void setValue(float profileValue)
profileValue
- public void setOffSetString(java.lang.String profileOffSet)
profileOffSet
- public void setOffSetSeconds(int profileOffSetSeconds)
profileOffSetSeconds
- public java.lang.String toXml()
protected org.w3c.dom.Element getXMLElement(org.w3c.dom.Document doc)
public java.lang.String toXml(int indent)
indent
- public boolean equal(SequenceProfile sq)