public class SUT
extends java.lang.Object
| Constructor and Description |
|---|
SUT()
Creates a system configuration (for which combinatorial tests
will be generated).
|
SUT(java.util.ArrayList<Parameter> params)
Creates a system configuration (for which combinatorial tests
will be generated) with a list of (input) parameters.
|
SUT(java.util.ArrayList<Parameter> params,
java.util.ArrayList<Parameter> outputParams)
Creates a system configuration (for which combinatorial tests
will be generated) with two lists of parameters, one for input
parameters, the other for output parameters.
|
SUT(java.lang.String name)
Creates a system configuration (for which combinatorial tests
will be generated) with a given name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConstraint(Constraint constraint)
Adds a constraint into this SUT.
|
void |
addDefaultRelation(int t)
Add the default relation with a specified strength.
|
Parameter |
addParam(java.lang.String name)
Adds a new parameter.
|
void |
addRelation(Relation relation)
Adds a relation into the SUT.
|
SUT |
buildSUT(int numOfParams,
int domainSize)
A convenience method to build a system configuration with a given
number of parameters and all the parameters have the same domain size.
|
edu.uta.cse.fireeye.service.constraint.ConstraintManager |
getConstraintManager()
Returns the constraint manager of this SUT.
|
edu.uta.cse.fireeye.service.constraint.ConstraintManager |
getConstraintManagerForBC() |
edu.uta.cse.fireeye.service.constraint.ConstraintManager |
getConstraintManagerForNT() |
java.util.ArrayList<Constraint> |
getConstraints()
Gets the constraints in this SUT.
|
TestSet |
getExistingTestSet()
Gets the existing test set.
|
int |
getFixedDomainSize()
If all the parameters have the same domain size, this method
returns the domain size.
|
int |
getMaxDomainSize()
Get the maximum number of values a parameter has in the system.
|
int |
getMinDomainSize()
Get the minimum number of values a parameter has in the system.
|
java.lang.String |
getName()
Get the name of this SUT.
|
int |
getNumOfConstraints()
Gets the number of constraints.
|
int |
getNumOfOutputParams()
Gets the number of output parameters.
|
int |
getNumOfParams()
Get the number of parameters in the system.
|
int |
getNumOfRelations()
Gets the number of relations.
|
Parameter |
getOutputParam(int index)
Gets the output parameter with a given index.
|
Parameter |
getOutputParam(java.lang.String name)
Gets the output parameter with a given name.
|
java.util.ArrayList<Parameter> |
getOutputParameters()
Gets the list of output parameters of this SUT>
|
Parameter |
getParam(int index)
Get the parameter with a given ID.
|
Parameter |
getParam(java.lang.String name)
Get the parameter with a given name.
|
java.util.ArrayList<Parameter> |
getParameters()
Returns the list of parameters.
|
java.util.ArrayList<Parameter> |
getParams()
Returns the list of parameters.
|
java.util.Iterator<Parameter> |
getParamsIterator()
Returns an iterator of the parameters.
|
edu.uta.cse.fireeye.service.engine.RelationManager |
getRelationManager()
Gets the relation manager.
|
java.util.ArrayList<Relation> |
getRelations()
Gets a list of relations in the SUT.
|
void |
setConstraintManager(edu.uta.cse.fireeye.service.constraint.ConstraintManager constraintMgr)
Sets the constraint manager of this SUT.
|
void |
setConstraintManagerForBC(edu.uta.cse.fireeye.service.constraint.ConstraintManager constraintManagerForBC) |
void |
setConstraintManagerForNT(edu.uta.cse.fireeye.service.constraint.ConstraintManager constraintManagerForNT) |
void |
setExistingTestSet(TestSet ts)
Sets an existing test set.
|
void |
setName(java.lang.String name)
Set the name of this SUT.
|
void |
setOutputParameters(java.util.ArrayList<Parameter> outputParameters)
Sets the list of output parameters.
|
void |
setParameters(java.util.ArrayList<Parameter> parameters) |
java.lang.String |
toString() |
public SUT()
Unnamed.public SUT(java.util.ArrayList<Parameter> params)
Unnamed.public SUT(java.util.ArrayList<Parameter> params, java.util.ArrayList<Parameter> outputParams)
Unnamed.public SUT(java.lang.String name)
public SUT buildSUT(int numOfParams, int domainSize)
numOfParams - the number of parametersdomainSize - the number of values each parameter haspublic java.lang.String getName()
public void setName(java.lang.String name)
name - the given name of this SUT.public Parameter addParam(java.lang.String name)
name - the parameter nameParameter objectpublic Parameter getParam(int index)
index - the parameter indexpublic Parameter getParam(java.lang.String name)
name - the name of the parameterpublic int getNumOfParams()
public java.util.Iterator<Parameter> getParamsIterator()
public java.util.ArrayList<Parameter> getParams()
getParameters.public java.util.ArrayList<Parameter> getParameters()
getParams.public int getMaxDomainSize()
public int getMinDomainSize()
public int getFixedDomainSize()
public void addRelation(Relation relation)
relation - the relation to be addedpublic void addDefaultRelation(int t)
t - the strength of this default relationpublic edu.uta.cse.fireeye.service.engine.RelationManager getRelationManager()
public java.util.ArrayList<Relation> getRelations()
public int getNumOfRelations()
public void addConstraint(Constraint constraint)
constraint - public java.util.ArrayList<Constraint> getConstraints()
public int getNumOfConstraints()
public void setExistingTestSet(TestSet ts)
ts - public TestSet getExistingTestSet()
public void setParameters(java.util.ArrayList<Parameter> parameters)
public edu.uta.cse.fireeye.service.constraint.ConstraintManager getConstraintManager()
public void setConstraintManager(edu.uta.cse.fireeye.service.constraint.ConstraintManager constraintMgr)
constraintMgr - public java.util.ArrayList<Parameter> getOutputParameters()
public void setOutputParameters(java.util.ArrayList<Parameter> outputParameters)
outputParameters - public int getNumOfOutputParams()
public Parameter getOutputParam(int index)
index - the index of the output parameter.public Parameter getOutputParam(java.lang.String name)
name - the name of the output parameter.public java.lang.String toString()
toString in class java.lang.Objectpublic edu.uta.cse.fireeye.service.constraint.ConstraintManager getConstraintManagerForNT()
public void setConstraintManagerForNT(edu.uta.cse.fireeye.service.constraint.ConstraintManager constraintManagerForNT)
public edu.uta.cse.fireeye.service.constraint.ConstraintManager getConstraintManagerForBC()
public void setConstraintManagerForBC(edu.uta.cse.fireeye.service.constraint.ConstraintManager constraintManagerForBC)