public abstract class ExperimentObject extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static long |
NO_KEY
Value for a key not set.
|
Constructor and Description |
---|
ExperimentObject()
Empty default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addUrParam(UrParameter parameter)
Adds a user refinement parameter.
|
static long |
asLong(String key)
Creating a unique 64 bit hash key from the original key of arbitrary
length.
|
void |
clearParametersMap()
Clears the loaded parameters.
|
long |
getId()
Returns the id of the object.
|
UrParameter |
getUrParam(UrParameter parameter)
Returns the refinement parameter of the same type than the one provided.
|
HashMap<Long,UrParameter> |
getUrParams()
Returns the user parameters map.
|
void |
removeUrParam(long paramterKey)
Removes a user parameter from the user parameters map.
|
void |
setId(long id)
Sets the id of the object.
|
void |
setUrParams(HashMap<Long,UrParameter> urParams)
Sets the user parameters map.
|
public long getId()
public void setId(long id)
id
- the id of the objectpublic void addUrParam(UrParameter parameter)
parameter
- the parameterpublic void removeUrParam(long paramterKey)
paramterKey
- the key of the parameterpublic UrParameter getUrParam(UrParameter parameter)
parameter
- the desired parameterpublic void clearParametersMap()
public void setUrParams(HashMap<Long,UrParameter> urParams)
urParams
- the user parameters mappublic HashMap<Long,UrParameter> getUrParams()
public static long asLong(String key)
key
- the original keyCopyright © 2021. All rights reserved.