|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester API Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDatapool
This class defines the primary interface to datapools. A datapool is an ordered collection of data. The structure of data is in the form of uniformly sized records that are collected into logical groups.
datapool --> (0..n) EquivalenceClasses --> (0..n) Records
Each record contains a uniform set of variables
(logically columns) with appropriate name and id properties associated
with each.
IDatapoolEquivalenceClass
,
IDatapoolRecord
,
IDatapoolVariable
,
IDatapoolListener
,
DatapoolException
Method Summary | |
---|---|
void |
addDatapoolListener(IDatapoolListener listener)
Register a listener for actions against the datapool that modify the data or structure of the data model. |
void |
appendEquivalenceClass(IDatapoolEquivalenceClass equivalenceClass)
Append the supplied equivalence class to the end
of the set of available equivalence classes. |
void |
appendVariable(IDatapoolVariable variable)
Append a variable to the end of the datapool ordered variable collection. |
IDatapoolEquivalenceClass |
constructEquivalenceClass()
Constructs an empty equivalence class |
IDatapoolVariable |
constructVariable()
Constructs an empty variable |
void |
insertEquivalenceClass(IDatapoolEquivalenceClass equivalenceClass, int beforeEquivalenceClassIndex)
Insert the equivalence class at a
supplied index. |
void |
insertVariable(IDatapoolVariable variable, int beforeVariableIndex)
Insert a variable before the variable at the specified zero based variable index. |
void |
moveEquivalenceClass(int sourceEquivalenceClassIndex, int targetEquivalenceClassIndex)
Move the equivalence class at a
supplied index to a new position within the set of available equivalence classes. |
void |
moveVariable(int sourceVariableIndex, int targetVariableIndex)
Move a variable to immediately before another variable. |
void |
removeDatapoolListener(IDatapoolListener listener)
Removes a listener from the datapool instance. |
void |
removeEquivalenceClass(int equivalenceClassIndex)
Remove the equivalence class at a
supplied index. |
void |
removeVariable(int variableIndex)
Remove the specified variable from the datapool. |
void |
setDefaultEquivalenceClassIndex(int equivalenceClassIndex)
Define the default equivalence class
in a datapool. |
void |
updateEquivalenceClass(IDatapoolEquivalenceClass equivalenceClass, int equivalenceClassIndex)
Replace the equivalence class at a
supplied index with a new value. |
void |
updateVariable(IDatapoolVariable variable, int variableIndex)
Update the variable at a specified zero based variable index. |
Methods inherited from interface org.eclipse.hyades.execution.runtime.datapool.IDatapool |
---|
getDefaultEquivalenceClassIndex, getEquivalenceClass, getEquivalenceClassCount, getEquivalenceClassIndex, getEquivalenceClassIndexById, getVariable, getVariableCount, getVariableIndex, getVariableIndexById |
Methods inherited from interface org.eclipse.hyades.execution.runtime.datapool.INamedElement |
---|
getDescription, getId, getName |
Methods inherited from interface org.eclipse.hyades.edit.datapool.INamedElement |
---|
setDescription, setId, setName |
Methods inherited from interface org.eclipse.hyades.execution.runtime.datapool.INamedElement |
---|
getDescription, getId, getName |
Method Detail |
---|
void updateVariable(IDatapoolVariable variable, int variableIndex)
variable
- The variable for the cells at variableIndex.variableIndex
- A zero based variable index.IDatapool.getVariableIndex(String)
,
IDatapool.getVariableIndexById(String)
,
IDatapool.getVariable(int)
void insertVariable(IDatapoolVariable variable, int beforeVariableIndex)
variable
- The new variable for the cells at beforeVariableIndex.beforeVariableIndex
- A zero based variable index.appendVariable(IDatapoolVariable)
,
moveVariable(int,int)
,
removeVariable(int)
void appendVariable(IDatapoolVariable variable)
variable
- The variable instance to append.insertVariable(IDatapoolVariable,int)
,
moveVariable(int,int)
,
removeVariable(int)
void moveVariable(int sourceVariableIndex, int targetVariableIndex)
sourceVariableIndex
- A zero based variable index for the
variable to be moved.targetVariableIndex
- The variable index marking the target
location for the move action.insertVariable(IDatapoolVariable,int)
,
appendVariable(IDatapoolVariable)
,
removeVariable(int)
void removeVariable(int variableIndex)
variableIndex
- A zero based variable index for the variable to
be moved.insertVariable(IDatapoolVariable,int)
,
appendVariable(IDatapoolVariable)
,
moveVariable(int,int)
void setDefaultEquivalenceClassIndex(int equivalenceClassIndex)
equivalence class
in a datapool.
equivalenceClassIndex
- The zero-based index for the default equivalence class.IDatapool.getDefaultEquivalenceClassIndex()
void updateEquivalenceClass(IDatapoolEquivalenceClass equivalenceClass, int equivalenceClassIndex)
equivalence class
at a
supplied index with a new value. This method is essentially a
shortcut for a call to removeEquivalenceClass
followed by a call to
insertEquivalenceClass
.
equivalenceClass
- The equivalence class to insert.equivalenceClassIndex
- The equivalence class indsex to remove and insert at.insertEquivalenceClass(IDatapoolEquivalenceClass,int)
,
appendEquivalenceClass(IDatapoolEquivalenceClass)
,
moveEquivalenceClass(int,int)
,
removeEquivalenceClass(int)
void insertEquivalenceClass(IDatapoolEquivalenceClass equivalenceClass, int beforeEquivalenceClassIndex)
equivalence class
at a
supplied index. The records
in the equivalence
class must match the layout of all other records in the datapool.
equivalenceClass
- The equivalence class to insert.beforeEquivalenceClassIndex
- The equivalence class index to insert before.updateEquivalenceClass(IDatapoolEquivalenceClass,int)
,
appendEquivalenceClass(IDatapoolEquivalenceClass)
,
moveEquivalenceClass(int,int)
,
removeEquivalenceClass(int)
void appendEquivalenceClass(IDatapoolEquivalenceClass equivalenceClass)
equivalence class
to the end
of the set of available equivalence classes. The records
in
the equivalence class must match the layout of all other records in the datapool.
equivalenceClass
- The equivalence class to append.updateEquivalenceClass(IDatapoolEquivalenceClass,int)
,
insertEquivalenceClass(IDatapoolEquivalenceClass,int)
,
moveEquivalenceClass(int,int)
,
removeEquivalenceClass(int)
void moveEquivalenceClass(int sourceEquivalenceClassIndex, int targetEquivalenceClassIndex)
equivalence class
at a
supplied index to a new position within the set of available equivalence classes.
sourceEquivalenceClassIndex
- The equivalence class index to move.targetEquivalenceClassIndex
- The equivalence class destination index.updateEquivalenceClass(IDatapoolEquivalenceClass,int)
,
insertEquivalenceClass(IDatapoolEquivalenceClass,int)
,
appendEquivalenceClass(IDatapoolEquivalenceClass)
,
removeEquivalenceClass(int)
void removeEquivalenceClass(int equivalenceClassIndex)
equivalence class
at a
supplied index.
equivalenceClassIndex
- The equivalence class indsex to remove.updateEquivalenceClass(IDatapoolEquivalenceClass,int)
,
insertEquivalenceClass(IDatapoolEquivalenceClass,int)
,
appendEquivalenceClass(IDatapoolEquivalenceClass)
,
moveEquivalenceClass(int,int)
void addDatapoolListener(IDatapoolListener listener)
IDatapoolListener
void removeDatapoolListener(IDatapoolListener listener)
IDatapoolListener
IDatapoolEquivalenceClass constructEquivalenceClass()
IDatapoolVariable constructVariable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |