Class MCPDrawSolution

java.lang.Object
  extended bySolution
      extended byParticleSolution
          extended byMCPSolution
              extended byMCPDrawSolution

public class MCPDrawSolution
extends MCPSolution

Solves the equation with a Monte Carlo method and draws the particles

Version:
$Revision: 1.10 $
See Also:
Solution, MCPSolution

Field Summary
 
Fields inherited from class MCPSolution
currentState, distributionUpToDate, numberOfRealisations, random, stateDensity
 
Fields inherited from class Solution
df, dfm, dfp, dg, dgm, dgp, dx, f, f0, fm, fp, g, gm, gp, ic, initialMoments, mesh, method, scheme, time, topic, x, x_0, x_1, xOffset, xSize, y_0, y_1, yOffset, ySize
 
Constructor Summary
MCPDrawSolution(RunData runData)
          Creates a MCPSolution object.
 
Method Summary
 void plot(java.awt.Canvas plotArea, java.awt.Image offScrImage, boolean headers)
          Plots the solution
 
Methods inherited from class MCPSolution
discretize, generateDistribution, getValue, getValue, hasOption, limits, momentsDeviation, next, previous
 
Methods inherited from class Solution
calculateMoments, getTime, getWinSize, incTime, limits, measure, output, rescale, setIC, setMethod, setScheme, setTime, setTopic, updateHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCPDrawSolution

public MCPDrawSolution(RunData runData)
Creates a MCPSolution object. Note that discretize must be called before next is called for the first time.

Parameters:
runData - The run time parameters
See Also:
Solution.next(RunData), Solution.discretize(ShapeFunction)
Method Detail

plot

public void plot(java.awt.Canvas plotArea,
                 java.awt.Image offScrImage,
                 boolean headers)
Plots the solution

Overrides:
plot in class MCPSolution
Parameters:
plotArea - The plot area
offScrImage - The off screen image to draw on
headers - Whether to draw headers