Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

src/net/threebit/jvr/JVREventBaseClass.java

Go to the documentation of this file.
00001 package net.threebit.jvr;
00002 
00003 /*
00004  * $Id: JVREventBaseClass.java,v 1.2 2004/07/02 18:11:38 kevino Exp $
00005  *
00006  * Copyright (c) 2003,2004 Kevin O'Donnell
00007  * 
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2.1 of the License, or (at your option) any later version.
00012  *
00013  * This library 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 GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307,  USA.
00021  */
00022 
00023 /**
00024  * Base class for all event classes.
00025  */
00026 
00027 public class JVREventBaseClass extends JVRBaseClass {
00028 
00029   /** Time at which the event was created */
00030   public long eventTime = System.currentTimeMillis();
00031 
00032   /** Number of milliseconds that this object has been instatiated for. */
00033   public long age () {
00034     return System.currentTimeMillis()-eventTime;
00035   }
00036 
00037 }

Generated on Sat Jul 16 03:47:35 2005 for JVR by doxygen 1.3.5