org.opensourcephysics.sip.ch15
Class IsingLoader

java.lang.Object
  extended by org.opensourcephysics.sip.ch15.IsingLoader
All Implemented Interfaces:
XML.ObjectLoader

public class IsingLoader
extends java.lang.Object
implements XML.ObjectLoader

IsingLoader implements the ObjectLoader interface to load and store Ising model data.


Constructor Summary
IsingLoader()
           
 
Method Summary
 java.lang.Object createObject(XMLControl element)
          Creates a LJParticlesApp object.
 java.lang.Object loadObject(XMLControl control, java.lang.Object obj)
          Loads data from the control into the IsingApp model.
 void saveObject(XMLControl control, java.lang.Object obj)
          Saves data from the IsingApp model into the control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsingLoader

public IsingLoader()
Method Detail

createObject

public java.lang.Object createObject(XMLControl element)
Creates a LJParticlesApp object.

Specified by:
createObject in interface XML.ObjectLoader
Parameters:
control - the xml control
Returns:
a new object

saveObject

public void saveObject(XMLControl control,
                       java.lang.Object obj)
Saves data from the IsingApp model into the control.

Specified by:
saveObject in interface XML.ObjectLoader
Parameters:
element - XMLControl
obj - Object

loadObject

public java.lang.Object loadObject(XMLControl control,
                                   java.lang.Object obj)
Loads data from the control into the IsingApp model.

Specified by:
loadObject in interface XML.ObjectLoader
Parameters:
element - XMLControl
obj - Object
Returns:
Object