Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MeasurementEvent.java

Go to the documentation of this file.
00001 /*
00002  * MeasurementEvent.java
00003  *
00004  * Copyright (C) 2005 Project SQUID, http://www.cs.helsinki.fi/group/squid/
00005  *
00006  * This file is part of Ikayaki.
00007  *
00008  * Ikayaki is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * Ikayaki is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with Ikayaki; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00021  */
00022 
00023 package ikayaki;
00024 
00025 import java.util.EventObject;
00026 
00032 public class MeasurementEvent extends EventObject {
00033 
00037     private Project project;
00038 
00042     private MeasurementStep step;
00043 
00047     private Type type;
00048 
00057     public MeasurementEvent(Project project, MeasurementStep step, Type type) {
00058         super(project);
00059         if (project == null || /* step == null || */ type == null) {
00060             throw new NullPointerException();
00061         }
00062         this.project = project;
00063         this.step = step;
00064         this.type = type;
00065     }
00066 
00070     public Project getProject() {
00071         return project;
00072     }
00073 
00077     public MeasurementStep getStep() {
00078         return step;
00079     }
00080 
00084     public Type getType() {
00085         return type;
00086     }
00087 
00091     public enum Type {
00092         STEP_START,
00093         STEP_END,
00094         STEP_ABORTED,
00095         HANDLER_MOVE,
00096         HANDLER_ROTATE,
00097         HANDLER_STOP,
00098         DEMAGNETIZE_START,
00099         DEMAGNETIZE_END,
00100         VALUE_MEASURED
00101     }
00102 }

Generated on Fri May 6 16:00:32 2005 for Squid by  doxygen 1.4.1