input

Class ExternalPathMovementReader

    • Method Detail

      • getPaths

        public java.util.List<java.util.List<ExternalPathMovementReader.Entry>> getPaths(int ID)
        Returns the path for the node with the given ID.
        Parameters:
        ID - ID of the node
        Returns:
        full path for the node.
      • getActive

        public java.util.List<ExternalPathMovementReader.ActiveTime> getActive(int ID)
        Returns the active time for the given ID.
        Parameters:
        ID - ID of the node
        Returns:
        active times for the node.
      • setNormalize

        public void setNormalize(boolean normalize)
        Sets normalizing of read values on/off. If on, values returned by #readNextMovements() are decremented by minimum values of the offsets. Default is on (normalize).
        Parameters:
        normalize - If true, normalizing is on (false -> off).
      • getMaxTime

        public double getMaxTime()
        Returns offset maxTime
        Returns:
        the maxTime
      • getMaxX

        public double getMaxX()
        Returns offset maxX
        Returns:
        the maxX
      • getMaxY

        public double getMaxY()
        Returns offset maxY
        Returns:
        the maxY
      • getMinTime

        public double getMinTime()
        Returns offset minTime
        Returns:
        the minTime
      • getMinX

        public double getMinX()
        Returns offset minX
        Returns:
        the minX
      • getMinY

        public double getMinY()
        Returns offset minY
        Returns:
        the minY
      • getInstance

        public static ExternalPathMovementReader getInstance(java.lang.String traceFilePath,
                                             java.lang.String activeFilePath)
        Get an instance of the reader for the given file path. If the file has already been read previously it will not be read again and instead the previous instance of the reader will be returned.
        Parameters:
        filePath - path where the file is read from
        Returns:
        instance of the reader that has loaded all the paths from the given trace file.