com.partnersoft.modules.inspection.data
Class InspectionGridCell

java.lang.Object
  extended by com.partnersoft.modules.inspection.data.InspectionGridCell

public class InspectionGridCell
extends java.lang.Object

Data class for Inspection grids and their priority.

Copyright 2008 Partner Software, Inc.

Version:
$Id$
Author:
Rich Stepanski

Constructor Summary
InspectionGridCell(com.partnersoft.geometry.xy.XyGridCell cell, double maxPriority, int total)
           
 
Method Summary
 InspectionGridCell combine(InspectionGridCell gridCell)
          Sums statistics for both cells.
 com.partnersoft.geometry.xy.XyGridCell getCell()
           
 double getPriority()
           
 int getTotal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InspectionGridCell

public InspectionGridCell(com.partnersoft.geometry.xy.XyGridCell cell,
                          double maxPriority,
                          int total)
Method Detail

getPriority

public double getPriority()

getCell

public com.partnersoft.geometry.xy.XyGridCell getCell()

getTotal

public int getTotal()

combine

public InspectionGridCell combine(InspectionGridCell gridCell)
Sums statistics for both cells. Both cells must be for the same XyGridCell.

Parameters:
cell -
Throws:
java.lang.UnsupportedOperationException - if XyGridCells are not the same.