Advertisement
Guest User

Untitled

a guest
Mar 13th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.86 KB | None | 0 0
  1. private RigStatus analisysStatusSlipRemoved( StatusWell currentStatus, ConfigWell configWell) {
  2.         RigStatus rigStatus;
  3.  
  4.         if (currentStatus.getCirculationSystemStatus()){
  5.             if (currentStatus.getWeigthOverBit() > configWell.getDepthTolerance()){
  6.  
  7.                 if (Math.abs((currentStatus.getDepthWell() - currentStatus.getDepthTool())) <= configWell.getDepthTolerance()){
  8.                      if (currentStatus.getAlarmWeigthLoss()){
  9.                          rigStatus = RigStatus.OFFBOTTOM_WEIGHT_LOSS;
  10.                      }else{
  11.                          rigStatus = RigStatus.DRILLING;
  12.                      }
  13.                 }else if (currentStatus.getDepthTool() < configGeneralFacade.getConfigGeneral().getPipeWellLength()){
  14.                     rigStatus = RigStatus.ROTARING_CEMENT;
  15.                 }else{
  16.                     rigStatus = RigStatus.REPASANDO;
  17.                 }
  18.             }else{
  19.                 rigStatus = RigStatus.CIRCULATING;
  20.             }
  21.         }else{
  22.             rigStatus = RigStatus.OFFBOTTOM;
  23.         }
  24.        
  25.         return rigStatus;
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement