public class SimpleMeasurementConfiguration extends MeasurementConfiguration implements java.lang.Cloneable, java.io.Serializable, JobContainerConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_IDENTIFIER
The identifier for this measurement type.
|
Constructor and Description |
---|
SimpleMeasurementConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addJob(JobConfiguration job)
Adds a job to the job list.
|
void |
addJob(JobConfiguration job,
int index)
Adds a job to the job list.
|
void |
clearJobs()
Removes all jobs from the job list.
|
java.lang.Object |
clone() |
JobConfiguration[] |
getJobs()
Returns the job list which might be edited by the caller.
|
PeriodConfiguration |
getPeriod() |
java.lang.String |
getStatisticsFileName()
Returns the name (without extension) of the file in which statistics of the measurement should be saved to.
|
java.lang.String |
getTypeIdentifier()
Returns a unique identifier for this configuration type.
|
boolean |
isAllowEditsWhileRunning()
Returns true if measurement configuration can be edited while it is running.
|
void |
removeJobAt(int index)
Removes the job at the given index.
|
void |
setAllowEditsWhileRunning(boolean allowEditsWhileRunning)
Set to true to allow the measurement to be edited while running.
|
void |
setJobs(JobConfiguration[] jobs)
Sets the job list to the given list.
|
void |
setPeriod(PeriodConfiguration period) |
void |
setStatisticsFileName(java.lang.String statisticsFileName)
Sets the name (without extension) of the file in which statistics of the measurement should be saved to.
|
checkConfiguration, getDeviseSettingsOff, getDeviseSettingsOn, getMeasurementRuntime, getName, getSaveSettings, setDeviseSettingsOff, setDeviseSettingsOn, setMeasurementRuntime, setName, setSaveSettings
public static final java.lang.String TYPE_IDENTIFIER
public JobConfiguration[] getJobs()
JobContainerConfiguration
getJobs
in interface JobContainerConfiguration
public void setJobs(JobConfiguration[] jobs)
JobContainerConfiguration
setJobs
in interface JobContainerConfiguration
jobs
- New job list.public void addJob(JobConfiguration job)
JobContainerConfiguration
addJob
in interface JobContainerConfiguration
job
- Job to be added.public void clearJobs()
JobContainerConfiguration
clearJobs
in interface JobContainerConfiguration
public boolean isAllowEditsWhileRunning()
public void setAllowEditsWhileRunning(boolean allowEditsWhileRunning)
allowEditsWhileRunning
- True if measurement should be changeable while running.public java.lang.String getTypeIdentifier()
Configuration
getTypeIdentifier
in interface Configuration
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class MeasurementConfiguration
java.lang.CloneNotSupportedException
public void removeJobAt(int index)
JobContainerConfiguration
removeJobAt
in interface JobContainerConfiguration
index
- Index of the job to be removed.public void addJob(JobConfiguration job, int index)
JobContainerConfiguration
addJob
in interface JobContainerConfiguration
job
- Job to be added.index
- Index where the job should be added.public void setPeriod(PeriodConfiguration period)
period
- the period to setpublic PeriodConfiguration getPeriod()
public void setStatisticsFileName(java.lang.String statisticsFileName)
statisticsFileName
- name for the file (without extension) in which statistics should be saved, or null.public java.lang.String getStatisticsFileName()