|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.ogsadai.client.toolkit.activity.RequestComponent
uk.org.ogsadai.client.toolkit.activity.Activity
uk.org.ogsadai.client.toolkit.activity.transform.FrequencyDistributor
This activity distributes a sequence of numeric values into spaces that are defined by a sequence of numeric values. The activity has one input - a sequence of numeric values - and one output - a sequence of values representing the frequency distribution of the input values.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.lang.String |
mPointsValues
The spaces over whish the input values will be distributed. |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
Constructor Summary | |
FrequencyDistributor(ActivityOutput input,
java.lang.String pointsValues)
Constructor. |
Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
int[] |
getDistribution()
|
ActivityOutput |
getOutput()
Gets the activity output - the frequency distribution. |
void |
setInput(ActivityOutput input)
Sets the input of this activity to be the output from another activity that will provide the data to be sampled. |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getDataService, getName, getSession, setDataService, setSession |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private java.lang.String mPointsValues
Constructor Detail |
public FrequencyDistributor(ActivityOutput input, java.lang.String pointsValues)
input
- Output from another activity which provides the data to be
sampled.pointsValues
- Sequence of numeric values that define the spaces over
which the input values will be distributed. This is a list
of one or more integers separated by ,
.
java.lang.IllegalArgumentException
- If input
or pointsValues
are null
.Method Detail |
public final void setInput(ActivityOutput input)
input
- Output from another activity.
java.lang.IllegalArgumentException
- If input
is null
.public ActivityOutput getOutput()
public int[] getDistribution() throws NoActivityOutputException, DataFormatException
NoActivityOutputException
DataFormatException
protected java.lang.String generateXML()
RequestComponent
generateXML
in class Activity
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |