com.activequant.servicelayer.matlab
Class MatlabServiceFacade

java.lang.Object
  extended by com.activequant.servicelayer.matlab.MatlabServiceFacade

public class MatlabServiceFacade
extends Object

This facade is to be used by MATLAB users. Nothing else. All functionality required by ML users will go in here.

Author:
ustaudinger

Constructor Summary
MatlabServiceFacade()
           
MatlabServiceFacade(IArchiveFactory af, IDaoFactory dao)
           
MatlabServiceFacade(String zookeeperHost)
           
 
Method Summary
 String facadeName()
          can be used for testing ...
 TimeSeriesContainer fetchTSData(TimeFrame tf, MarketDataInstrument[] marketInstruments, String[] fieldNames, double startDate8Time6, double endDate8Time6, Map<Parameter,Object> paramMap)
           
 TimeSeriesContainer fetchTSData(TimeFrame tf, String[] marketInstrumentIds, String[] fieldNames, double startDate8Time6, double endDate8Time6, Map<Parameter,Object> paramMap)
           
 TimeSeriesContainer fetchTSData(TimeFrame tf, String[] marketInstrumentIds, String[] fieldNames, double startDate8Time6, Map<Parameter,Object> paramMap)
           
 TimeSeriesContainer fetchTSData(TimeFrame tf, String marketInstrumentId, String fieldName, double startDate8Time6, double endDate8Time6, Map<Parameter,Object> paramMap)
           
 TimeSeriesContainer fetchTSData(TimeFrame tf, String marketInstrumentId, String fieldName, double startDate8Time6, Map<Parameter,Object> paramMap)
          Fetches data from start time to now().
 String getIID(String mdiId)
          Fetches the instrument id for an mdi id.
 String[] getInstrumentIds()
           
 Instrument loadInstrument(String instrumentId)
           
 MarketDataInstrument loadMarketDataInstrument(String mdiId)
           
 MarketDataInstrument[] loadMarketDataInstruments(Instrument instrument)
           
static void main(String[] args)
          Used for basic and simple testing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatlabServiceFacade

public MatlabServiceFacade()

MatlabServiceFacade

public MatlabServiceFacade(String zookeeperHost)

MatlabServiceFacade

public MatlabServiceFacade(IArchiveFactory af,
                           IDaoFactory dao)
Method Detail

getInstrumentIds

public String[] getInstrumentIds()
                          throws DaoException
Throws:
DaoException

loadInstrument

public Instrument loadInstrument(String instrumentId)
                          throws DaoException
Throws:
DaoException

loadMarketDataInstruments

public MarketDataInstrument[] loadMarketDataInstruments(Instrument instrument)

getIID

public String getIID(String mdiId)
              throws DaoException
Fetches the instrument id for an mdi id.

Parameters:
mdiId -
Returns:
Throws:
DaoException

loadMarketDataInstrument

public MarketDataInstrument loadMarketDataInstrument(String mdiId)
                                              throws DaoException
Throws:
DaoException

fetchTSData

public TimeSeriesContainer fetchTSData(TimeFrame tf,
                                       String[] marketInstrumentIds,
                                       String[] fieldNames,
                                       double startDate8Time6,
                                       Map<Parameter,Object> paramMap)
                                throws Exception
Throws:
Exception

fetchTSData

public TimeSeriesContainer fetchTSData(TimeFrame tf,
                                       MarketDataInstrument[] marketInstruments,
                                       String[] fieldNames,
                                       double startDate8Time6,
                                       double endDate8Time6,
                                       Map<Parameter,Object> paramMap)
                                throws Exception
Throws:
Exception

fetchTSData

public TimeSeriesContainer fetchTSData(TimeFrame tf,
                                       String[] marketInstrumentIds,
                                       String[] fieldNames,
                                       double startDate8Time6,
                                       double endDate8Time6,
                                       Map<Parameter,Object> paramMap)
                                throws Exception
Throws:
Exception

facadeName

public String facadeName()
can be used for testing ...

Returns:

fetchTSData

public TimeSeriesContainer fetchTSData(TimeFrame tf,
                                       String marketInstrumentId,
                                       String fieldName,
                                       double startDate8Time6,
                                       Map<Parameter,Object> paramMap)
                                throws Exception
Fetches data from start time to now(). delegates on to the other fetchTSData method.

Parameters:
tf -
marketInstrumentId -
fieldName -
startDate8Time6 -
Returns:
Throws:
Exception

fetchTSData

public TimeSeriesContainer fetchTSData(TimeFrame tf,
                                       String marketInstrumentId,
                                       String fieldName,
                                       double startDate8Time6,
                                       double endDate8Time6,
                                       Map<Parameter,Object> paramMap)
                                throws Exception
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Used for basic and simple testing.

Parameters:
args -
Throws:
Exception


Copyright © 2012 ActiveQuant GmbH. All Rights Reserved.