001 package com.croftsoft.apps.cyborg; 002 003 import javax.swing.event.*; 004 005 import com.croftsoft.core.lang.lifecycle.Updatable; 006 import com.croftsoft.core.util.loop.*; 007 008 /********************************************************************* 009 * Interface for CyborgModel. 010 * 011 * @version 012 * $Id: CyborgModel.java,v 1.17 2008/04/19 21:30:58 croft Exp $ 013 * @since 014 * 2005-03-16 015 * @author 016 * <a href="https://www.croftsoft.com/">David Wallace Croft</a> 017 *********************************************************************/ 018 019 public interface CyborgModel 020 extends Updatable 021 ////////////////////////////////////////////////////////////////////// 022 ////////////////////////////////////////////////////////////////////// 023 { 024 025 public double getAimX ( ); 026 027 public double getAimY ( ); 028 029 public double getAlpha ( ); 030 031 public boolean getAnimate ( ); 032 033 public boolean getForceLength ( ); 034 035 public LoopGovernor getLoopGovernor ( ); 036 037 public double getMax ( ); 038 039 public double getOffset ( ); 040 041 public boolean getRealTime ( ); 042 043 public boolean [ ] [ ] getSpikeRasters ( ); 044 045 public double getTargetCenterX ( ); 046 047 public double getTargetCenterY ( ); 048 049 public double getTargetRadius ( ); 050 051 public double getX ( ); 052 053 public double getY ( ); 054 055 public String getTransform ( ); 056 057 public void setAimX ( double aimX ); 058 059 public void setAimY ( double aimY ); 060 061 public void setAlpha ( double alpha ); 062 063 public void setAnimate ( boolean animate ); 064 065 public void setForceLength ( boolean forceLength ); 066 067 public void setMax ( double max ); 068 069 public void setOffset ( double offset ); 070 071 public void setPaused ( boolean paused ); 072 073 public void setRealTime ( boolean realTime ); 074 075 public void setTransform ( String transform ); 076 077 /********************************************************************* 078 * Transforms from [-1 to +1] to [0 to +1]. 079 *********************************************************************/ 080 public double transform ( double control ); 081 082 public void addChangeListener ( ChangeListener changeListener ); 083 084 public void reset ( ); 085 086 ////////////////////////////////////////////////////////////////////// 087 ////////////////////////////////////////////////////////////////////// 088 }