Class ROLSP

All Implemented Interfaces:
ROLS, Serializable, Cloneable, Runnable, MutableTreeNode, TreeNode

public class ROLSP extends MSNode implements ROLS, Runnable
The ROLSP class is used for Proof-Of-Concept Parallel Recusive Over Length Scales (ROLS) Methods (currently only on shared memory systems). Simply inserting a ParallelMSM node into the Hierarchy causes a seperate thread of execution to be created for all operations on nodes below the ROLSP node. This is very preliminary code, but a useful concept for parallelizing ROLS in ffe.lang.
Since:
1.0
Author:
Michael J. Schnieders
See Also:
  • Field Details

    • GO_PARALLEL

      public static boolean GO_PARALLEL
      Constant GO_PARALLEL=false
    • parallelNotDone

      public static int parallelNotDone
      Constant parallelNotDone=0
  • Constructor Details

    • ROLSP

      public ROLSP()
      Constructor for ROLSP.
  • Method Details

    • equals

      public boolean equals(Object o)

      MSNode equality := same class and same name. Consider replacing with a Comparator<MSNode> for cases where non-reference equality is desired.

      Overidden equals method.

      Overrides:
      equals in class MSNode
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class MSNode
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • setView

      public void setView(RendererCache.ViewModel viewModel, List<org.jogamp.java3d.BranchGroup> newShapes)
      setView
      Specified by:
      setView in interface ROLS
      Overrides:
      setView in class MSNode
      Parameters:
      viewModel - a RendererCache.ViewModel object.
      newShapes - a List object.
    • toString

      public String toString()

      Overridden toString method returns the MSNode's name

      Overrides:
      toString in class MSNode