object.common
Class CreationPlate

java.lang.Object
  extended by object.common.CreationPlate
All Implemented Interfaces:
java.io.Serializable

public class CreationPlate
extends java.lang.Object
implements java.io.Serializable

Description
Object used in the creation plate 384 process from plate 96
Infos : KLB - IPMC - 01/2004

See Also:
Serialized Form

Field Summary
private  java.util.Date date
          Date of the creation Plate Object process
private  int focus
           
private  int focusIndex
          Index for the HTML form concerning input boxes
private  java.util.Hashtable hashPlate96
          Hashtable containing Plate 96 Object concerning with this creation Plate Object process
private  java.util.Hashtable hashRefGenmate
          Hashtable containing reference slide code of new Plate 384 in creation
private  java.lang.String message
          Information message in case of error during the process
private  java.lang.String temps_creation
          Time of creation plate (not use)
private  int volume
          Volume from Plate 96 to Plate 384
 
Constructor Summary
CreationPlate()
          Default constructor
 
Method Summary
 boolean checkAllPlate()
          This function execute several test in the way to valid the creation plate process :
- check if all Plate384 concerns the same Organism
- check if all Plate96 concerns the same Organism
- check if the Plate384 slide_codes is following themselves
- check if the Plate96 slide_codes is following themselves
 boolean checkPlateRef384(java.lang.String plate_ref)
          This function check if the plate_ref received for a Plate384 Object is well-formatted
 boolean checkPlateRef96(java.lang.String plate_ref)
          This function check if the plate_ref received for a Plate96 Object is coherent :
- if it exists in database
- if the volume of this Plate96 Object is superior to the volume for the Plate384 in creation
 java.util.Date getDate()
          Date of the creation Plate Object process
 int getFocus()
          Index for the HTML form concerning input boxes
 int getFocusIndex()
           
 java.util.Hashtable getHashPlate96()
          Hashtable containing Plate 96 Object concerning with this creation Plate Object process
 java.util.Hashtable getHashRefGenmate()
          Hashtable containing reference slide code of new Plate 384 in creation
 java.lang.String getMessage()
          Information message in case of error during the process
 java.lang.String getTemps_creation()
          Time of creation plate (not use)
 int getVolume()
          Volume from Plate 96 to Plate 384
 void load(java.util.Hashtable params)
          This function loadParams from HTML form.
 boolean readyToSave()
          This function check if the creation Plate process can be saved :
- at least one Plate384 referenced in this.hashRefGenmate
- c4 valid Plate96 Object in this.hashPlate96
 void save(int user_id)
          This function save the creation Plate process
 void setDate(java.util.Date date)
           
 void setFocus(int focus)
           
 void setFocusIndex(int focusIndex)
           
 void setHashPlate96(java.util.Hashtable hashPlate96)
           
 void setHashRefGenmate(java.util.Hashtable hashRefGenmate)
           
 void setMessage(java.lang.String message)
           
 void setTemps_creation(java.lang.String temps_creation)
           
 void setVolume(int volume)
           
 void updateFocusIndex()
          This function update the this.focus int following submission steps focus = {8,6,7,9,0,1,3,4,5} in the case of IPMC creation plate process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

date

private java.util.Date date
Date of the creation Plate Object process


volume

private int volume
Volume from Plate 96 to Plate 384


hashPlate96

private java.util.Hashtable hashPlate96
Hashtable containing Plate 96 Object concerning with this creation Plate Object process


hashRefGenmate

private java.util.Hashtable hashRefGenmate
Hashtable containing reference slide code of new Plate 384 in creation


message

private java.lang.String message
Information message in case of error during the process


temps_creation

private java.lang.String temps_creation
Time of creation plate (not use)


focusIndex

private int focusIndex
Index for the HTML form concerning input boxes


focus

private int focus
Constructor Detail

CreationPlate

public CreationPlate()
Default constructor

Method Detail

getDate

public java.util.Date getDate()
Date of the creation Plate Object process


setDate

public void setDate(java.util.Date date)

getVolume

public int getVolume()
Volume from Plate 96 to Plate 384


setVolume

public void setVolume(int volume)

getHashPlate96

public java.util.Hashtable getHashPlate96()
Hashtable containing Plate 96 Object concerning with this creation Plate Object process


setHashPlate96

public void setHashPlate96(java.util.Hashtable hashPlate96)

getHashRefGenmate

public java.util.Hashtable getHashRefGenmate()
Hashtable containing reference slide code of new Plate 384 in creation


setHashRefGenmate

public void setHashRefGenmate(java.util.Hashtable hashRefGenmate)

getTemps_creation

public java.lang.String getTemps_creation()
Time of creation plate (not use)


setTemps_creation

public void setTemps_creation(java.lang.String temps_creation)

getFocusIndex

public int getFocusIndex()

setFocusIndex

public void setFocusIndex(int focusIndex)

getFocus

public int getFocus()
Index for the HTML form concerning input boxes


setFocus

public void setFocus(int focus)

getMessage

public java.lang.String getMessage()
Information message in case of error during the process


setMessage

public void setMessage(java.lang.String message)

load

public void load(java.util.Hashtable params)
This function loadParams from HTML form.

Parameters:
params - Hashtable containing :
- volume param
- genmate.* param --> ref. for new Plate384
- A1, A2, B1, B2 param --> slide code of Plate 96
See Also:
checkAllPlate(), checkPlateRef96(String), checkPlateRef384(String)

checkPlateRef384

public boolean checkPlateRef384(java.lang.String plate_ref)
This function check if the plate_ref received for a Plate384 Object is well-formatted

Parameters:
plate_ref - Reference of a Plate384 Object
Returns:
boolean true if the plate_ref is well-formatted and false if not
See Also:
Common, Common.isPlate384Exists(String)

checkPlateRef96

public boolean checkPlateRef96(java.lang.String plate_ref)
This function check if the plate_ref received for a Plate96 Object is coherent :
- if it exists in database
- if the volume of this Plate96 Object is superior to the volume for the Plate384 in creation

Parameters:
plate_ref - Reference of a Plate96 Object
Returns:
boolean true if tests are complete

checkAllPlate

public boolean checkAllPlate()
This function execute several test in the way to valid the creation plate process :
- check if all Plate384 concerns the same Organism
- check if all Plate96 concerns the same Organism
- check if the Plate384 slide_codes is following themselves
- check if the Plate96 slide_codes is following themselves


readyToSave

public boolean readyToSave()
This function check if the creation Plate process can be saved :
- at least one Plate384 referenced in this.hashRefGenmate
- c4 valid Plate96 Object in this.hashPlate96

Returns:
bool boolean true is ready to save ok and false if not
See Also:
Common, Common.isPlate384Exists(String)

save

public void save(int user_id)
This function save the creation Plate process

Parameters:
user_id - ID of the User Object saving the process
See Also:
readyToSave(), Plate384.save(), Plate96.updateVolumeAndUse(int), Plate384, Plate384.save(), Plate96

updateFocusIndex

public void updateFocusIndex()
This function update the this.focus int following submission steps focus = {8,6,7,9,0,1,3,4,5} in the case of IPMC creation plate process