Class PnLVectorData

  • All Implemented Interfaces:
    IMarketDataset<com.qfs.vector.IVector[],​com.qfs.vector.IVector>

    public class PnLVectorData
    extends AMarketDataset<com.qfs.vector.IVector[],​com.qfs.vector.IVector>
    • Field Detail

      • dataSet

        protected final com.qfs.vector.IVector[] dataSet
    • Method Detail

      • getDataLength

        public int getDataLength()
        Description copied from interface: IMarketDataset
        The size of the data vector
        Returns:
        data length
      • createCompatibleDataset

        public IMarketDataset<com.qfs.vector.IVector[],​com.qfs.vector.IVector> createCompatibleDataset​(IMarketDataRetrievalService.IPillarSet[] pillars,
                                                                                                             boolean debug)
        Description copied from interface: IMarketDataset
        Return a IMarketDataset of the same type of this
        Parameters:
        pillars - The pillars for the creation
        debug - Is the debug enabled
        Returns:
        A new fresh set
      • arrayFill

        public void arrayFill​(com.qfs.vector.IVector value)
        Description copied from interface: IMarketDataset
        Fill the array data with the value of pos in the input data
        Parameters:
        value - the input data to use in order to fill the result
      • getData

        public com.qfs.vector.IVector[] getData()
        Description copied from interface: IMarketDataset
        The underlying vector
        Returns:
        double[] vector or IVector[] vector
      • getData

        public com.qfs.vector.IVector getData​(int idx)
        Description copied from interface: IMarketDataset
        Return an underlying value
        Parameters:
        idx - the position index
        Returns:
        A single value
      • setData

        public void setData​(int idx,
                            com.qfs.vector.IVector value)
        Description copied from interface: IMarketDataset
        Set one data in the underlying vector
        Parameters:
        idx - the position index
        value - A single value