org.jasen.interfaces
Interface JasenMapStore

All Known Implementing Classes:
DiskMapStore

public interface JasenMapStore

The map store is responsible for loading and saving the JasenMap created during training.

Any map store can be used, however it is important to note that the map store is only loaded ONCE

This means that changes to the map store cannot occur after the engine has been initialised.

However, the auto update engine allows for the dynamic installation of updated map stores during live operation

It is recommended that regular updates to the JasenMap in use by the engine be made to ensure the engine has an up-to-date and accurate reference to common spam content at that time.

Author:
Jason Polites

Method Summary
 JasenMap load(Object properties)
          Loads the map.
 void save(JasenMap map, Object properties)
          Saves the map.
 

Method Detail

save

public void save(JasenMap map,
                 Object properties)
          throws JasenException
Saves the map.

Parameters:
map -
properties - Any properties required by the store to save the map
Throws:
JasenException

load

public JasenMap load(Object properties)
              throws JasenException
Loads the map.

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