/******************************************************************* Copyright (c) 2001-2010 Apprisant Technologies Inc. All rights reserved. Apprisant Technologies permits non-exclusive royalty free use, copying and modification of this demo program source code for the purposes of evaluating the Apprisant Toolkit or building applications that use it. This software and documentation is provided "AS IS". APPRISANT TECHNOLOGIES DISCLAIMS ANY REPRESENTATIONS AND WARRANTIES, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY AND FITNESS OF THIS PRODUCT FOR ANY PARTICULAR PURPOSE. APPRISANT TECHNOLOGIES SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY ANY PARTY, INCLUDING LOST PROFITS, ARISING FROM THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ITS DERIVATIONS. ********************************************************************/ package oilfield; import java.awt.geom.Point2D; /* The data object class for the Oilfield demo, holding the position as well as the data items. */ public class Well { String name; int days; int depth; double cost; double completed; Point2D position; public Well (String name, int days, int depth, double cost, double completed, Point2D position) { this.name = name; this.days = days; this.depth = depth; this.cost = cost; this.completed = completed; this.position = position; } public String getKey () { return name; } public String getKeyAsString() { return name; } public int getDays() { return days; } public int getDepth() { return depth; } public double getCost() { return cost; } public double getCompleted() { return completed; } public Point2D getPosition() { return position; } }