Class AbstractIndicator<T extends DoubleScalarInterface>

    • Constructor Detail

      • AbstractIndicator

        public AbstractIndicator()
    • Method Detail

      • getValue

        public final <G extends GtuDataInterfaceT getValue​(Query<G> query,
                                                             Time endTime,
                                                             List<TrajectoryGroup<G>> trajectoryGroups)
        Get value for given query over time interval, returning earlier calculated value if possible. This method uses Time.ZERO as start time.
        Type Parameters:
        G - gtu data type
        Parameters:
        query - Query<G>; query
        endTime - Time; start time of interval to calculate indicator over
        trajectoryGroups - List<TrajectoryGroup<G>>; group of trajectories to calculate the indicator for
        Returns:
        value for given query
      • getValue

        public final <G extends GtuDataInterfaceT getValue​(Query<G> query,
                                                             Time startTime,
                                                             Time endTime,
                                                             List<TrajectoryGroup<G>> trajectoryGroups)
        Get value for given query over time interval, returning earlier calculated value if possible.
        Type Parameters:
        G - gtu data type
        Parameters:
        query - Query<G>; query
        startTime - Time; start time of interval to calculate indicator over
        endTime - Time; start time of interval to calculate indicator over
        trajectoryGroups - List<TrajectoryGroup<G>>; group of trajectories to calculate the indicator for
        Returns:
        value for given query
      • calculate

        protected abstract <G extends GtuDataInterfaceT calculate​(Query<G> query,
                                                                    Time startTime,
                                                                    Time endTime,
                                                                    List<TrajectoryGroup<G>> trajectoryGroups)
        Calculate value for given trajectory group.
        Type Parameters:
        G - gtu data type
        Parameters:
        query - Query<G>; query
        startTime - Time; start time of interval to calculate indicator over
        endTime - Time; start time of interval to calculate indicator over
        trajectoryGroups - List<TrajectoryGroup<G>>; group of trajectories to calculate the indicator for
        Returns:
        value for given trajectory group