swarm.analysis
Class FunctionGraphCImpl

java.lang.Object
  |
  +--swarm.PhaseCImpl
        |
        +--swarm.analysis.FunctionGraphCImpl

public class FunctionGraphCImpl
extends PhaseCImpl
implements SwarmObjectS, SwarmObjectC, FunctionGraphS, FunctionGraphC

A widget for drawing a function over a range of one variable.. The FunctionGraph class is like the ActiveGraph except that instead of plotting values versus time it plots them versus some specified range on the x-axis. Also, instead of plotting one value on each step (as you would with time), FunctionGraph does a complete sampling whenever the `graph' method is called. That is, it graphs f(x) = y for all x in [minX, maxX] where x = minX + n * stepS ize. The user specifies stuff like minX, maxX, the number of steps between minX and maxX to sample at and a method selector that is a wrapper for the equation being graphed. The method selector must be in a particular format: (BOOL) f: (double *) x : (double *) y If the method returns FALSE then that x value is skipped, otherwise it is assummed that y = f(x) and that value is plotted.


Fields inherited from class swarm.PhaseCImpl
nextPhase
 
Constructor Summary
FunctionGraphCImpl()
           
FunctionGraphCImpl(FunctionGraph nextPhase)
           
 
Methods implemented by this class for interface swarm.analysis.FunctionGraphC
createBegin, createEnd, setArithmeticWarn, setDataFeed, setElement, setFunctionSelector, setResetFrequency, setXMin$Max$Resolution, setXMin$Max$StepSize
 
Methods implemented by this class for interface swarm.defobj.CreateC
create, createBegin, createEnd
 
Methods implemented by this class for interface swarm.defobj.CustomizeC
customizeBegin, customizeCopy, customizeEnd
 
Methods inherited from class swarm.PhaseCImpl
_copy_creating_phase_to_using_phase
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionGraphCImpl

public FunctionGraphCImpl(FunctionGraph nextPhase)

FunctionGraphCImpl

public FunctionGraphCImpl()