org.jasen.core.engine
Class DiskMapStore

java.lang.Object
  extended byorg.jasen.core.engine.DiskMapStore
All Implemented Interfaces:
JasenMapStore

public class DiskMapStore
extends Object
implements JasenMapStore

Used to load/save a JasenMap to local disk by simply serializing the token map.

This is the simplest implementation of a map store, however is not very portable.

For greater portability it is recommended that alternate map stores be created. To use an alternate map store, specify the map store class in both the JasenTrainer and the RobinsonScanner plugin

PLEASE NOTE however that the auto update service provided assumes a DiskMapStore as the primary store for engine data.
Thus, if you change the MapStore, you will no longer be able to use the jASEN.org auto update service.

You can still use the auto update engine against you OWN update site, just not at jasen.org

Author:
Jason Polites
See Also:
JasenTrainer.setStore(JasenMapStore), RobinsonScanner.init(Properties)

Constructor Summary
DiskMapStore()
           
 
Method Summary
 JasenMap load(Object properties)
          Loads the map.
 void save(JasenMap map, Object properties)
          Saves the map.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiskMapStore

public DiskMapStore()
Method Detail

load

public JasenMap load(Object properties)
              throws JasenException
Description copied from interface: JasenMapStore
Loads the map.

Specified by:
load in interface JasenMapStore
Parameters:
properties - Any properties required by the store to load the map
Returns:
The loaded map containing word probabilities
Throws:
JasenException

save

public void save(JasenMap map,
                 Object properties)
          throws JasenException
Description copied from interface: JasenMapStore
Saves the map.

Specified by:
save in interface JasenMapStore
Parameters:
map -
properties - Any properties required by the store to save the map
Throws:
JasenException