infomat.bridges.jsdm
Class RIIO

java.lang.Object
  extended by 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 :).


Nested Class Summary
 class RIIO.RIHandler
           
 
Field Summary
(package private)  Properties properties
           
 
Constructor Summary
RIIO()
           
RIIO(Properties properties)
           
 
Method Summary
 Properties getDefaultProperties()
           
 Properties getProperties()
           
 java.lang.Object getPropertyValue(java.lang.String name)
           
 IMatrix load(java.io.File file)
          Loads a IMatrix from file in XML format
private  IMatrix load(org.xml.sax.InputSource source)
          Load RandomIndex from file.
 IMatrix loadCompressed(java.io.File file)
           
 void setProperties(Properties properties)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

Properties properties
Constructor Detail

RIIO

public RIIO()

RIIO

public RIIO(Properties properties)
Method Detail

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 RandomLabels loaded, or null on failure.