infomat.bridges.jsdm
Class RIIO
java.lang.Object
infomat.bridges.jsdm.RIIO
- All Implemented Interfaces:
- HasProperties
public class RIIO
- extends java.lang.Object
- implements HasProperties
For importing a Random Index
from Martin Hassel's package
java sdm (jsdm)
see: http://www.nada.kth.se/~xmartin/
This is a naive implementation. Each index of the vectors
is treated as an IObject. The importation is from the
result files of the jsdm, so there is no need to have the
package installed. You'll need jsdm result files, though :).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
properties
Properties properties
RIIO
public RIIO()
RIIO
public RIIO(Properties properties)
getDefaultProperties
public Properties getDefaultProperties()
- Specified by:
getDefaultProperties
in interface HasProperties
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.String name)
- Specified by:
getPropertyValue
in interface HasProperties
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
throws PropertyNotFoundException
- Specified by:
setProperty
in interface HasProperties
- Throws:
PropertyNotFoundException
getProperties
public Properties getProperties()
- Specified by:
getProperties
in interface HasProperties
setProperties
public void setProperties(Properties properties)
- Specified by:
setProperties
in interface HasProperties
load
public IMatrix load(java.io.File file)
- Loads a IMatrix from file in XML format
loadCompressed
public IMatrix loadCompressed(java.io.File file)
load
private IMatrix load(org.xml.sax.InputSource source)
- Load RandomIndex from file.
- Parameters:
source
- InputSource from (compressed) file, URL etc.
- Returns:
- number of
RandomLabel
s loaded, or null
on failure.