public static enum BioWell.LockMode extends java.lang.Enum<BioWell.LockMode>
BioPlateType.getLockMode()
. The lock-mode
is used to determine if the well can be assigned to a biomaterial
or not.Enum Constant and Description |
---|
LOCKED_AFTER_ADD
It is allowed to add biomaterial once to the well.
|
LOCKED_AFTER_CREATE
It is allowed to add biomaterial once to the well, but it most be done
at the same time the plate is creted.
|
LOCKED_AFTER_MOVE
It is allowed to add biomaterial once to the well.
|
UNLOCKED
The well is not locked.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
displayValue |
private int |
value
The integer value of this lock mode.
|
private static java.util.Map<java.lang.Integer,BioWell.LockMode> |
valueMapping
Maps an integer to a lock mode.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canAdd(BioWell well)
Is it allowed to add (a different) biomaterial to the well?
|
(package private) abstract boolean |
canAdd(BioWellData well) |
boolean |
canClear(BioWell well)
Is it allowed to clear a well from biomaterial?
|
(package private) abstract boolean |
canClear(BioWellData well) |
static BioWell.LockMode |
fromValue(int value)
Get the
Lock mode object when you know the integer code. |
int |
getValue()
Get the integer value that is used when storing a lock mode to the database.
|
(package private) void |
onAdd(BioWellData well,
MeasuredBioMaterialData biomaterial)
Called when biomaterial is added to a well.
|
(package private) void |
onClear(BioWellData well,
MeasuredBioMaterialData biomaterial)
Called when a well is cleared from an existing biomaterial.
|
java.lang.String |
toString() |
static BioWell.LockMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BioWell.LockMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BioWell.LockMode UNLOCKED
public static final BioWell.LockMode LOCKED_AFTER_MOVE
BioWell.getOriginalBioMaterial()
.public static final BioWell.LockMode LOCKED_AFTER_ADD
public static final BioWell.LockMode LOCKED_AFTER_CREATE
private static final java.util.Map<java.lang.Integer,BioWell.LockMode> valueMapping
private final int value
private final java.lang.String displayValue
public static BioWell.LockMode[] values()
for (BioWell.LockMode c : BioWell.LockMode.values()) System.out.println(c);
public static BioWell.LockMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<BioWell.LockMode>
public int getValue()
public static BioWell.LockMode fromValue(int value)
Lock mode
object when you know the integer code.value
- The integer valuepublic boolean canClear(BioWell well)
well
- The biowell to checkabstract boolean canClear(BioWellData well)
void onClear(BioWellData well, MeasuredBioMaterialData biomaterial)
well
- The well that is clearedbiomaterial
- The biomaterial that is currently located on the wellpublic boolean canAdd(BioWell well)
well
- A biowellBioWell.canAddBioMaterial()
abstract boolean canAdd(BioWellData well)
void onAdd(BioWellData well, MeasuredBioMaterialData biomaterial)
well
- The well the biomaterial is added tobiomaterial
- The biomaterial that is going to be added to the well