public class LoadProfile
extends java.lang.Object
Constructor and Description |
---|
LoadProfile(java.lang.String id,
java.util.List<ProfilePoint> profPoints,
boolean force)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addPoint(ProfilePoint point)
Add a new point in this profile
|
boolean |
containsTime(int time)
Check if profile have already a point at this time
|
boolean |
enoughPoints()
Check if there is enough point
|
int |
getAdditionalPoints()
If the profile have some crenel_xx points we need to add
some additional points.
|
boolean |
getForceStop() |
java.lang.String |
getId() |
int |
getMaxPopulation() |
int |
getMaxTime() |
java.util.List<ProfilePoint> |
getProfilesPoints() |
boolean |
isCorrect()
Check if the profile is correct
|
void |
removePoint(ProfilePoint point)
Remove a point
|
void |
removeTime(int time)
Remove point at this time
|
void |
setForceStop(boolean force)
Sets the force stop flag
|
public LoadProfile(java.lang.String id, java.util.List<ProfilePoint> profPoints, boolean force)
id
- profPoints
- force
- public java.lang.String getId()
public java.util.List<ProfilePoint> getProfilesPoints()
public boolean getForceStop()
public void setForceStop(boolean force)
force
- if true, means running vUsers may be terminated
before full behavior completion, according to the load profile.
If false, running vUsers will complete their behavior.public int getAdditionalPoints()
public int getMaxTime()
public int getMaxPopulation()
public void addPoint(ProfilePoint point)
point
- the new pointpublic void removePoint(ProfilePoint point)
point
- the point to removepublic boolean containsTime(int time)
time
- public void removeTime(int time)
time
- public boolean isCorrect()
public boolean enoughPoints()