001 package com.croftsoft.core.sim;
002
003 /***********************************************************************
004 * DeltaClock implementation.
005 *
006 * @version
007 * $Id: DeltaClockImp.java,v 1.1 2008/08/17 22:39:46 croft Exp $
008 * @since
009 * 2008-08-17
010 * @author
011 * <a href="http://www.CroftSoft.com/">David Wallace Croft</a>
012 ***********************************************************************/
013
014 public final class DeltaClockImp
015 implements DeltaClock
016 ////////////////////////////////////////////////////////////////////////
017 ////////////////////////////////////////////////////////////////////////
018 {
019
020 private double deltaTime;
021
022 ////////////////////////////////////////////////////////////////////////
023 ////////////////////////////////////////////////////////////////////////
024
025 public DeltaClockImp ( final double deltaTime )
026 ////////////////////////////////////////////////////////////////////////
027 {
028 this.deltaTime = deltaTime;
029 }
030
031 ////////////////////////////////////////////////////////////////////////
032 // accessor methods
033 ////////////////////////////////////////////////////////////////////////
034
035 public double getDeltaTime ( )
036 ////////////////////////////////////////////////////////////////////////
037 {
038 return deltaTime;
039 }
040
041 ////////////////////////////////////////////////////////////////////////
042 // mutator methods
043 ////////////////////////////////////////////////////////////////////////
044
045 public void setDeltaTime ( final double deltaTime )
046 ////////////////////////////////////////////////////////////////////////
047 {
048 this.deltaTime = deltaTime;
049 }
050
051 ////////////////////////////////////////////////////////////////////////
052 ////////////////////////////////////////////////////////////////////////
053 }