Commit ab8c96c3 authored by Tobias Meuser's avatar Tobias Meuser
Browse files

Added relevance calculation component

This includes:
    - Interfaces for edge and intersection based relevance
    - A helper structure providing the required information
          for relevance calculation
parent 7a87c60f
/*
* Copyright (c) 2005-2010 KOM – Multimedia Communications Lab
*
* This file is part of Simonstrator.KOM.
*
* Simonstrator.KOM is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* PeerfactSim.KOM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PeerfactSim.KOM. If not, see <http://www.gnu.org/licenses/>.
*
*/
package de.tudarmstadt.maki.simonstrator.api.component.vehicular.relevance;
import de.tudarmstadt.maki.simonstrator.api.component.HostComponent;
import de.tudarmstadt.maki.simonstrator.api.component.vehicular.VehicleInformationComponent;
/**
* This interface provide methods to calculate the relevance of an event for a
* vehicle.
*
* @author Tobias Meuser
* @version 1.0.0
*
*/
public interface EventRelevanceCalculationComponent extends HostComponent {
/**
* This method calculates the relevance of an event for a vehicle, combining
* the temporal and the geographical relevance.
*
* @param pVehicle
* The vehicle for which the information is relevant.
* @param pInformation
* The information for which the relevance is calculated.
* @return The relevance of the event.
*/
double calculateRelevance(VehicleInformationComponent pVehicle, VehicularPointInformation pInformation);
}
/*
* Copyright (c) 2005-2010 KOM – Multimedia Communications Lab
*
* This file is part of Simonstrator.KOM.
*
* Simonstrator.KOM is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* PeerfactSim.KOM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PeerfactSim.KOM. If not, see <http://www.gnu.org/licenses/>.
*
*/
package de.tudarmstadt.maki.simonstrator.api.component.vehicular.relevance;
public interface IntersectionRelevanceCalculationComponent {
}
/*
* Copyright (c) 2005-2010 KOM – Multimedia Communications Lab
*
* This file is part of Simonstrator.KOM.
*
* Simonstrator.KOM is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* PeerfactSim.KOM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PeerfactSim.KOM. If not, see <http://www.gnu.org/licenses/>.
*
*/
package de.tudarmstadt.maki.simonstrator.api.component.vehicular.relevance;
import de.tudarmstadt.maki.simonstrator.api.component.sensor.location.Location;
import de.tudarmstadt.maki.simonstrator.api.component.vehicular.roadnetwork.RoadNetworkEdge;
/**
* An information in a vehicular scenario is always associated with a location
* and a creation time. Those properties are crucial to evaluate the existence
* of an object.
*
* @author Tobias Meuser
* @version 1.0.0
*
*/
public interface VehicularPointInformation {
/**
* The edge of an information is required to decide whether the event is on
* the route of a vehicle. This method is required additionally to
* getLocation() to avoid match matching.
*
* @return The edge of the event.
*/
RoadNetworkEdge getEdge();
/**
* This method provides the location of the detected event.
*
* @return The location of the event.
*/
Location getLocation();
/**
* This method provides the detection date of the event. This is required to
* decide on the freshness of a detected event.
*
* @return The detection timestamp of the event.
*/
long getDetectionDate();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment