minor documentation and code fixes

This commit is contained in:
fros4943 2009-03-10 21:05:00 +00:00
parent 77c8524aa5
commit c7ea9fc6e1
3 changed files with 11 additions and 8 deletions

View file

@ -24,7 +24,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* $Id: CoreComm.java,v 1.13 2009/02/20 16:49:43 fros4943 Exp $ * $Id: CoreComm.java,v 1.14 2009/03/10 21:05:00 fros4943 Exp $
*/ */
package se.sics.cooja; package se.sics.cooja;
@ -100,8 +100,7 @@ public abstract class CoreComm {
*/ */
public static boolean hasLibraryFileBeenLoaded(File libraryFile) { public static boolean hasLibraryFileBeenLoaded(File libraryFile) {
for (File loadedFile : coreCommFiles) { for (File loadedFile : coreCommFiles) {
if (loadedFile != null if (loadedFile.getName().equals(libraryFile.getName())) {
&& loadedFile.getName().equals(libraryFile.getName())) {
return true; return true;
} }
} }

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: MoteInterfaceHandler.java,v 1.6 2009/03/09 14:08:03 fros4943 Exp $ * $Id: MoteInterfaceHandler.java,v 1.7 2009/03/10 21:05:00 fros4943 Exp $
*/ */
package se.sics.cooja; package se.sics.cooja;
@ -345,4 +345,7 @@ public class MoteInterfaceHandler {
polledAfterAll = null; polledAfterAll = null;
} }
public String toString() {
return "Mote interfaces handler (" + allInterfaces.size() + " mote interfaces)";
}
} }

View file

@ -24,7 +24,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* $Id: MoteType.java,v 1.9 2009/03/09 15:40:26 fros4943 Exp $ * $Id: MoteType.java,v 1.10 2009/03/10 21:05:00 fros4943 Exp $
*/ */
package se.sics.cooja; package se.sics.cooja;
@ -35,18 +35,19 @@ import java.util.Collection;
import javax.swing.JPanel; import javax.swing.JPanel;
import org.jdom.Element; import org.jdom.Element;
import se.sics.cooja.contikimote.ContikiMoteType;
import se.sics.cooja.dialogs.MessageList; import se.sics.cooja.dialogs.MessageList;
/** /**
* The mote type defines properties common for several motes. These properties * The mote type defines properties common for several motes. These properties
* may differ between different implementations, but typically includes how a * may differ between different implementations, but typically includes how a
* mote of that type is initialized, which hardware peripherals each mote has * mote is initialized, which hardware peripherals each mote has
* etc. * etc. All simulated motes belongs to one mote type.
* Every simulated motes must belong to a mote type.
* *
* A mote type may also hold the connection to an underlying simulation * A mote type may also hold the connection to an underlying simulation
* framework, such as a compiled Contiki system. * framework, such as a compiled Contiki system.
* *
* @see ContikiMoteType
* @author Fredrik Osterlind * @author Fredrik Osterlind
*/ */
public interface MoteType { public interface MoteType {