Class LocalJob

java.lang.Object
org.opensourcephysics.tools.LocalJob
All Implemented Interfaces:
Serializable, Job

public class LocalJob extends Object implements Job, Serializable
This is a Job implementation for osp data transfers within a single vm.
Version:
1.0
Author:
Douglas Brown
See Also:
  • Constructor Details

    • LocalJob

      public LocalJob()
      Constructs a LocalJob.
    • LocalJob

      public LocalJob(String xml)
      Constructs a LocalJob with a specified xml string.
      Parameters:
      xml - the string
    • LocalJob

      public LocalJob(Object obj)
      Constructs a LocalJob for a specified object.
      Parameters:
      obj - the object
  • Method Details

    • getXML

      public String getXML()
      Gets the xml string. Implements Job.
      Specified by:
      getXML in interface Job
      Returns:
      the xml string
    • setXML

      public void setXML(String xml)
      Sets the xml string. Implements Job.
      Specified by:
      setXML in interface Job
      Parameters:
      xml - the xml string
    • setXML

      public void setXML(Object obj)
      Sets the xml string to that saved by the specified object.
      Parameters:
      obj - the object