/* * Copyright (c) 2005-2011 KOM - Multimedia Communications Lab * * This file is part of PeerfactSim.KOM. * * PeerfactSim.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 . * */ package de.tud.kom.p2psim.impl.network.modular.st; import de.tud.kom.p2psim.api.common.SimHost; import de.tud.kom.p2psim.impl.network.modular.db.NetMeasurementDB; import de.tudarmstadt.maki.simonstrator.api.component.sensor.location.Location; /** * This strategy determines an abstract network position of a given host * (like 2-dimensional, geographical or GNP) * * @author Leo Nobach * */ public interface PositioningStrategy extends ModNetLayerStrategy { /** * Returns the position of the host. Can be any object extending NetPosition. * If the host is mobile, a position stub object may be returned, * where the current position can be requested at any simulation time. * @param host * @param db * @param hostMeta * @return */ public Location getPosition( SimHost host, NetMeasurementDB db, NetMeasurementDB.Host hostMeta); }