com.croftsoft.apps.cyborg
Class CyborgModelImpl
java.lang.Object
com.croftsoft.apps.cyborg.CyborgModelImpl
- All Implemented Interfaces:
- CyborgModel, Updatable
public final class CyborgModelImpl
- extends Object
- implements CyborgModel
Maintains state.
- Since:
- 2005-03-16
- Version:
- $Id: CyborgModelImpl.java,v 1.34 2008/04/19 21:30:58 croft Exp $
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CyborgModelImpl
public CyborgModelImpl()
reset
public void reset()
- Specified by:
reset
in interface CyborgModel
getAimX
public double getAimX()
- Specified by:
getAimX
in interface CyborgModel
getAimY
public double getAimY()
- Specified by:
getAimY
in interface CyborgModel
getAlpha
public double getAlpha()
- Specified by:
getAlpha
in interface CyborgModel
getAnimate
public boolean getAnimate()
- Specified by:
getAnimate
in interface CyborgModel
getForceLength
public boolean getForceLength()
- Specified by:
getForceLength
in interface CyborgModel
getLoopGovernor
public LoopGovernor getLoopGovernor()
- Specified by:
getLoopGovernor
in interface CyborgModel
getMax
public double getMax()
- Specified by:
getMax
in interface CyborgModel
getOffset
public double getOffset()
- Specified by:
getOffset
in interface CyborgModel
getRealTime
public boolean getRealTime()
- Specified by:
getRealTime
in interface CyborgModel
getSpikeRasters
public boolean[][] getSpikeRasters()
- Specified by:
getSpikeRasters
in interface CyborgModel
getX
public double getX()
- Specified by:
getX
in interface CyborgModel
getY
public double getY()
- Specified by:
getY
in interface CyborgModel
getTargetCenterX
public double getTargetCenterX()
- Specified by:
getTargetCenterX
in interface CyborgModel
getTargetCenterY
public double getTargetCenterY()
- Specified by:
getTargetCenterY
in interface CyborgModel
getTargetRadius
public double getTargetRadius()
- Specified by:
getTargetRadius
in interface CyborgModel
getTransform
public String getTransform()
- Specified by:
getTransform
in interface CyborgModel
setAimX
public void setAimX(double aimX)
- Specified by:
setAimX
in interface CyborgModel
setAimY
public void setAimY(double aimY)
- Specified by:
setAimY
in interface CyborgModel
setAlpha
public void setAlpha(double alpha)
- Specified by:
setAlpha
in interface CyborgModel
setAnimate
public void setAnimate(boolean animate)
- Specified by:
setAnimate
in interface CyborgModel
setForceLength
public void setForceLength(boolean forceLength)
- Specified by:
setForceLength
in interface CyborgModel
setMax
public void setMax(double max)
- Specified by:
setMax
in interface CyborgModel
setOffset
public void setOffset(double offset)
- Specified by:
setOffset
in interface CyborgModel
setRealTime
public void setRealTime(boolean realTime)
- Specified by:
setRealTime
in interface CyborgModel
setTransform
public void setTransform(String transform)
- Specified by:
setTransform
in interface CyborgModel
transform
public double transform(double control)
- Transforms from [-1 to +1] to [0 to +1].
- Specified by:
transform
in interface CyborgModel
addChangeListener
public void addChangeListener(ChangeListener changeListener)
- Specified by:
addChangeListener
in interface CyborgModel
setPaused
public void setPaused(boolean paused)
- Specified by:
setPaused
in interface CyborgModel
update
public void update()
- Specified by:
update
in interface Updatable
CroftSoft Apps Javadoc (2008-09-28 21:15:07)