public class JobDefinition extends Object
Note: this class is/should be immutable
| Modifier and Type | Field and Description |
|---|---|
int |
configurationId
the configuration id, identify which parameter settings were used
|
String |
cut
full qualifying name of the class under test (CUT)
|
Set<String> |
dependentOnClasses
the name of all classes this CUT depends on, and that would be good to
have generated test cases before starting this job.
|
Set<String> |
inputClasses
All dependent classes used as input for this CUT
|
int |
jobID
A unique, human-readable identifier for this job
|
int |
memoryInMB
define how much memory this job can allocate
|
Set<String> |
parentClasses
All dependent classes in the parent hierarchy
|
int |
seconds
define for how long this job should be run
|
| Constructor and Description |
|---|
JobDefinition(int seconds,
int memoryInMB,
String cut,
int configurationId,
Set<String> inputDependencies,
Set<String> parentDependencies)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
areDependenciesSatisfied(List<JobDefinition> schedule,
Set<String> done)
Check if all jobs this one depends on are finished
|
boolean |
dependOn(JobDefinition other)
Does the execution of this job depend on the other?
|
boolean |
equals(Object obj) |
JobDefinition |
getByAddingBudget(int moreSeconds)
Create a copy of this job by adding extra seconds
|
JobDefinition |
getByAddingDependencies(Set<String> inputs,
Set<String> parents)
Create a copy of this job, and add the input and parent dependencies to
the set of CUT dependencies
|
int |
getNumberOfDependencies()
The number of classes this job depends on and
should be executed before this job
|
int |
hashCode() |
String |
toString() |
public final int jobID
public final int seconds
public final int memoryInMB
public final String cut
public final int configurationId
public final Set<String> dependentOnClasses
public JobDefinition getByAddingDependencies(Set<String> inputs, Set<String> parents) throws IllegalArgumentException
It is OK to have one of the sets null, but not both
input - IllegalArgumentExceptionpublic JobDefinition getByAddingBudget(int moreSeconds) throws IllegalArgumentException
input - IllegalArgumentExceptionpublic boolean dependOn(JobDefinition other)
other - public int getNumberOfDependencies()
public boolean areDependenciesSatisfied(List<JobDefinition> schedule, Set<String> done)
job - Copyright © 2010–2016 EvoSuite. All rights reserved.