Class MCSDrawSolution

java.lang.Object
  extended bySolution
      extended bySamplingSolution
          extended byMCSSolution
              extended byMCSDrawSolution

public class MCSDrawSolution
extends MCSSolution

Solves the equation with a Monte Carlo sampling of possible configurations and drawn on the plot area

Version:
$Revision: 1.34 $
See Also:
Solution, MCSSolution

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

Constructor Detail

MCSDrawSolution

public MCSDrawSolution(RunData runData)
Creates a MCSSolution 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, PhysData), 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 MCSSolution
Parameters:
plotArea - The plot area
offScrImage - The off screen image to draw on
headers - Whether to draw headers