public class ModificationParameters extends ExperimentObject
NO_KEY
Constructor and Description |
---|
ModificationParameters()
Constructor.
|
ModificationParameters(ModificationParameters modificationParameters)
Constructor creating a new Modification profile based on the given one.
|
Modifier and Type | Method and Description |
---|---|
void |
addFixedModification(Modification modification)
Adds a fixed modification.
|
void |
addRefinementFixedModification(Modification modification)
Adds a fixed refinement modification.
|
void |
addRefinementVariableModification(Modification modification)
Adds a variable refinement modification.
|
void |
addVariableModification(Modification modification)
Adds a variable modification.
|
void |
clearFixedModifications()
Clears fixed modifications.
|
void |
clearRefinementModifications()
Clears refinement modifications.
|
void |
clearVariableModifications()
Clears variable modifications.
|
boolean |
contains(String modificationName)
Indicates whether the modification is contained in the profile, looking
into all modifications (fixed, variable and refinement)
|
boolean |
equals(ModificationParameters otherProfile)
Returns true of the two profiles are identical.
|
ArrayList<String> |
getAllModifications()
Returns a list of all searched modifications.
|
ArrayList<String> |
getAllNotFixedModifications()
Returns a list of all searched modifications but the fixed ones.
|
HashMap<String,Modification> |
getBackedUpModifications()
Returns the modifications backed-up as a map.
|
int |
getColor(String modification)
Returns the color used to code the given modification.
|
HashMap<String,Integer> |
getColors()
Returns the modification colors as a map.
|
ArrayList<String> |
getFixedModifications()
Returns the searched fixed modifications names.
|
Modification |
getModification(String modName)
Returns the back-ed up modification with the given name.
|
ArrayList<String> |
getRefinementFixedModifications()
Return the refinement fixed modifications used for the second pass
search.
|
ArrayList<String> |
getRefinementVariableModifications()
Return the refinement variable modifications used for the second pass
search.
|
ArrayList<String> |
getVariableModifications()
Returns the expected variable modification names included in this
profile.
|
void |
removeFixedModification(String modificationName)
Removes a modification from the list of fixed modifications.
|
void |
removeRefinementFixedModification(String modificationName)
Removes a fixed modification from the list of refinement modifications.
|
void |
removeRefinementVariableModification(String modificationName)
Removes a variable modification from the list of refinement
modifications.
|
void |
removeVariableModification(String modificationName)
Removes a modification from the list of variable modifications.
|
void |
setColor(String expectedModification,
int color)
Sets a new color for the given expected modification.
|
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
public ModificationParameters()
public ModificationParameters(ModificationParameters modificationParameters)
modificationParameters
- the modification profilepublic ArrayList<String> getVariableModifications()
public ArrayList<String> getFixedModifications()
public ArrayList<String> getRefinementVariableModifications()
public void clearVariableModifications()
public void clearFixedModifications()
public void clearRefinementModifications()
public ArrayList<String> getRefinementFixedModifications()
public ArrayList<String> getAllModifications()
public ArrayList<String> getAllNotFixedModifications()
public void addVariableModification(Modification modification)
modification
- the modification to addpublic void addRefinementVariableModification(Modification modification)
modification
- the modification to addpublic void addRefinementFixedModification(Modification modification)
modification
- the modification to addpublic void addFixedModification(Modification modification)
modification
- the modification to addpublic void setColor(String expectedModification, int color)
expectedModification
- the name of the expected modificationcolor
- the new colorpublic int getColor(String modification)
modification
- the name of the given expected modificationpublic HashMap<String,Integer> getColors()
public Modification getModification(String modName)
modName
- the name of the modification of interestpublic HashMap<String,Modification> getBackedUpModifications()
public void removeVariableModification(String modificationName)
modificationName
- the name of the modificationpublic void removeFixedModification(String modificationName)
modificationName
- the name of the modificationpublic void removeRefinementVariableModification(String modificationName)
modificationName
- the name of the modificationpublic void removeRefinementFixedModification(String modificationName)
modificationName
- the name of the modificationpublic boolean contains(String modificationName)
modificationName
- the name of the modificationpublic boolean equals(ModificationParameters otherProfile)
otherProfile
- the profile to compare againstCopyright © 2021. All rights reserved.