jmri.jmrix.bachrus
Class DccSpeedProfile

java.lang.Object
  extended by jmri.jmrix.bachrus.DccSpeedProfile

public class DccSpeedProfile
extends Object

Class to represent a dimensionless speed profile of a DCC decoder.

Author:
Andrew Crosland Copyright (C) 2010

Field Summary
protected  float[] _dataPoints
           
protected  int _lastPoint
           
protected  int _length
           
protected  float _max
           
 
Constructor Summary
DccSpeedProfile(int len)
           
 
Method Summary
 void clear()
           
static void export(DccSpeedProfile[] sp, int address, int units)
           
static void export(DccSpeedProfile sp, int address, String dirString, int units)
           
 int getLast()
           
 int getLength()
           
 float getMax()
           
 float getPoint(int idx)
           
static void printHeading(PrintWriter p, int address)
           
 void setMax(float m)
           
 boolean setPoint(int idx, float val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_length

protected int _length

_dataPoints

protected float[] _dataPoints

_max

protected float _max

_lastPoint

protected int _lastPoint
Constructor Detail

DccSpeedProfile

public DccSpeedProfile(int len)
Method Detail

setPoint

public boolean setPoint(int idx,
                        float val)

clear

public void clear()

getPoint

public float getPoint(int idx)

getLength

public int getLength()

setMax

public void setMax(float m)

getMax

public float getMax()

getLast

public int getLast()

printHeading

public static void printHeading(PrintWriter p,
                                int address)

export

public static void export(DccSpeedProfile sp,
                          int address,
                          String dirString,
                          int units)

export

public static void export(DccSpeedProfile[] sp,
                          int address,
                          int units)


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads