// $Id: ObstructRadioModelPlugin.java,v 1.7.4.4 2003/09/10 03:41:52 mdwelsh Exp $ /** * interface for an obstruction for use by the ObstructRadioModelPlugin class * * Note the constructors of the concrete classes should take a string that will * be a comma separated list of the params needed, where the first param * should be ignored, as it will be the class name * This will allow for easy loading from a file. * * @author Jeff Rupp */ package net.tinyos.sim.plugins; public interface ObstructionIF { /** * returns true if the given line intersects this object */ public boolean Intersects(double x1,double y1,double x2,double y2); /** * draws this object to the provided context */ public void draw(java.awt.Graphics g); /** * returns the amount of attenuation in dB associated with the obstruction */ public double GetAttenuation(); }