text
stringlengths
3
1.18M
package com.bfg.model; import java.util.Vector; import java.util.HashMap; /** * Stores information about an author.<P> * * Copyright 2002, James M. Turner * No warranty is made as to the fitness of this code for any * particular purpose. It is included for demonstration purposes * only. * * @aut...
package com.bfg.model; public class Main { static int cnt=0; static boolean less(double v, double w){ cnt++; return v<w; } static void exch(double[] a, int i, int j){ double temp=a[i]; a[i]=a[j]; a[j]=temp; } static void compExch(double[] a, int i, int j){ if(less(a[j],a[i])) ...
package com.bfg.controller; public class SMTPClient { }
/* * Copyright (c) 1998 by Gefion software. * * Permission to use, copy, and distribute this software for * NON-COMMERCIAL purposes and without fee is hereby granted * provided that this copyright notice appears in all copies. * */ package com.bfg.controller; import java.io.*; import java.sql.*; i...
package com.bfg.controller; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; i...
package com.bfg.controller; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @SuppressWarnings("serial") public class TestServle...
package com.bfg.controller; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.Properties; import javax.ma...
package com.bfg.controller; import javax.mail.*; import javax.mail.internet.*; import java.util.*; public class Mail { String d_email = "iamdvr@gmail.com", d_password = "****", d_host = "smtp.gmail.com", d_port = "465", m_to...
package com.bfg.controller; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.Date; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; import java.text.Dat...
package com.bfg.controller; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; ...
package com.bfg.controller; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.sql.Connection; import java.sql.Driver; import java.sql.DriverManager; import java.sql.SQLException; import java.util.Date; import java.util.Enumeration; im...
package com.bfg.controller; import java.io.PrintWriter; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.Date; import java.util.Enumeration; import java.util.Vector; /* This class represents a connection pool. It creates a new connection on demand, ...
package com.bfg.controller; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.Date; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; import java.text.Dat...
package com.bfg.controller; import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.PasswordAuthentication; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; p...
package com.bfg.controller; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; import java.net.UnknownHostException; import java.util.Properties; import javax.mail.Message; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; ...
package com.bfg.controller; import java.io.IOException; import java.io.PrintWriter; import java.util.Properties; import javax.mail.Message; import javax.mail.PasswordAuthentication; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.interne...
/* Copyright 2005 by Mordechai (Moti) Ben-Ari. See copyright.txt. */ /* * Edit excluded variables */ package jspin; import javax.swing.*; import java.awt.event.*; class Excluded extends JFrame implements ActionListener { private JTextArea names; private JButton okButton = new JButton(Config.OK); ...
/* Copyright 2003-8 by Mordechai (Moti) Ben-Ari. See copyright.txt. */ package jspin; import java.io.*; import java.awt.event.*; import java.util.*; public class Config { static Properties properties = new Properties(); // Where to find configuration file public static String installationDirectory; p...
/* Copyright 2003-4 by Niko Myller and Mordechai (Moti) Ben-Ari. See copyright.txt. */ /* * Display line numbers in editor */ package jspin; import java.awt.*; import javax.swing.*; public class LineNumbers extends JComponent { private int size; // Width of line numbers private Font font; // Font of ...
/* Copyright 2005 by Mordechai (Moti) Ben-Ari. See copyright.txt. */ /* * Display images from dot file */ package jspin; import java.awt.*; import javax.swing.*; class ImagePanel extends JPanel { private Image image; ImagePanel(String fileName) { image = Toolkit.getDefaultToolkit().crea...
/* Copyright 2005 by Mordechai (Moti) Ben-Ari. See copyright.txt. */ /* * File filter for jSpin */ package jspin; import java.io.File; import javax.swing.filechooser.*; public class JSpinFileFilter extends FileFilter { private String ext1 = ""; private String ext2 = ""; private String ext3 ...
/* Copyright 2005 by Mordechai (Moti) Ben-Ari. See copyright.txt. */ // Class DisplayFile for Help, About, Display raw package jspin; import javax.swing.*; import java.awt.event.*; class DisplayImage extends JFrame implements ActionListener { DisplayImage(String file) { ImagePanel image = new ImageP...
/* Copyright 2003-4 by Mordechai (Moti) Ben-Ari. See copyright.txt. */ /* Class for undo/redo. Extracted from TextComponentDemo.java in java.sun.com. */ package jspin; import javax.swing.*; import javax.swing.undo.*; import javax.swing.event.*; import java.awt.event.*; class UndoRedo { UndoActio...
/* Copyright 2003-4 by Mordechai (Moti) Ben-Ari. See copyright.txt. */ /* * Fork process for running Spin * Manage dialog for interactive simulation */ package jspin; import javax.swing.*; import java.io.*; import java.awt.event.*; import java.util.StringTokenizer; class RunSpin { private Editor editor...
/* jSpin - Development environment for Spin Copyright 2003-8 by Mordechai (Moti) Ben-Ari. This program 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 2 of the License, or (at your option...
/* Copyright 2007 by Mordechai (Moti) Ben-Ari. See copyright.txt. */ /* * Dialog for setting SpinSpider options */ package jspin; import javax.swing.*; import javax.swing.border.*; import java.awt.event.*; class SpiderOptions extends JDialog implements ActionListener { private JCheckBox debugBo...
/* Copyright 2003-7 by Mordechai (Moti) Ben-Ari. See copyright.txt. */ /* * Editor for Promela programs */ package jspin; import javax.swing.*; import javax.swing.event.*; import javax.swing.border.*; import java.awt.*; import java.awt.datatransfer.*; import java.io.*; class Editor implements Clipboard...
/* Copyright 2005 by Mordechai (Moti) Ben-Ari. See copyright.txt. */ /* * Read and write the SpinSpider properties file for this program */ package jspin; import java.io.*; import java.util.Properties; class SpiderFile { private Properties properties; private String fileName; SpiderFile (Propertie...
/* Copyright 2004-5 by Mordechai (Moti) Ben-Ari. See copyright.txt. */ /* * Filter Spin output. * Display a table: process, statement, variables. * The width of a variable field is dynamically configurable (VARIABLE_WIDTH). */ package jspin; import java.util.*; class Filter { private static final St...
/* Copyright 2005 by Mordechai (Moti) Ben-Ari. See copyright.txt. */ /* * Dialog for setting Common Options */ package jspin; import javax.swing.*; import java.awt.event.*; class Options extends JFrame implements ActionListener, ItemListener { static final String ST = "-p", LOC = "-l", GLO = "...
// Copyright 2008 by Mordechai (Moti) Ben-Ari. /** Local configuration class for standalone FilterSpin */ package filterSpin; public class Config { static final String VERSION = "0.1"; static final String CONFIG_FILE = "config.cfg"; static final String SEPARATOR = "#"; static void se...
// Copyright 2008 by Mordechai (Moti) Ben-Ari. See copyright.txt. /** Class with main method for standalone FilterSpin */ package filterSpin; import java.io.*; class FilterSpin { /** Read the files of excluded variables/statements and return as a single string */ private static Str...
// Copyright 2004-8 by Mordechai (Moti) Ben-Ari. See copyright.txt. /** Filter Spin output. Display a table: process, statement, variables. */ package filterSpin; import java.util.*; public class Filter { // Properties and copies of the data from the properties private Properties properties; pri...
/* Copyright 2005-7 by Mordechai (Moti) Ben-Ari. See copyright.txt */ /* * Write the output in different formats */ package spinSpider; import java.io.*; public class Write { SpinSpider spd; Write(SpinSpider s, String f) { spd = s; } // Write the never claim from the number of processes and ...
/* Config - configuration constants and file Copyright 2005-7 by Mordechai (Moti) Ben-Ari. See SpinSpider.java */ package spinSpider; public class Config { static final String VERSION = "6.0"; // Properties data structure is used for command names // Initialize properties from file or ...
/* Copyright 2007 by Mordechai (Moti) Ben-Ari. See copyright.txt */ /* * Draw the automata representation of a Promela program. */ package spinSpider; import java.io.*; public class DrawAutomata { SpinSpider spd; public DrawAutomata(SpinSpider s) { spd = s; } // Extract an int value that appe...
/* Copyright 2005-6 by Mordechai (Moti) Ben-Ari. See copyright.txt */ /* * Definine a state of the state transition diagram */ package spinSpider; class State { // Static variables // The number of processes and variables is // the same for all *spd* lines printed out static int numProcs; stat...
/* SpinSpider - Use Spin to Create State Transition Diagrams Copyright 2005 by Mordechai (Moti) Ben-Ari. This program 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 2 of the License, o...
/* Copyright 2005-6 by Mordechai (Moti) Ben-Ari. See copyright.txt */ /* * Defining a transition of the state transition diagram */ package spinSpider; class Transition { int head; // head state int tail; // tail state boolean inTrail; // Is this transition in the trail? p...
/* Copyright 2006 by Mordechai (Moti) Ben-Ari. See copyright.txt */ /* * Use the trail file to give attributes to states and transitions */ package spinSpider; class SetTrail { SpinSpider spd; SetTrail(SpinSpider s) { spd = s; } // Traverse the state diagram according to the trail file void setTrai...
/* Copyright 2005-6 by Mordechai (Moti) Ben-Ari. See copyright.txt */ /* * Process a source statement */ package spinSpider; class Statement { int process; // Process where the statement is declared int sourceState; // Source state int targetState; // Target state int id; ...
/* Copyright 2006 by Mordechai (Moti) Ben-Ari. See copyright.txt */ /* * Read the data files */ package spinSpider; import java.io.*; class Read { SpinSpider spd; String fileName; Read(SpinSpider s, String f) { spd = s; fileName = f; } // Read the state transitions output by -DCHECK and ...
/* Copyright 2005-6 by Mordechai (Moti) Ben-Ari. See copyright.txt */ /* Transitions obtained by processing New/Old/Up/Down in -DCHECK file */ package spinSpider; class Trail { int id; public Trail(int i) { id = i; } public String toString() { return "id " + id; } ...
package com.sample.service.impl; import org.springframework.stereotype.Repository; import egovframework.rte.psl.dataaccess.EgovAbstractDAO; import egovframework.rte.psl.dataaccess.util.EgovMap; @Repository("SampleDAO") public class SampleDAO extends EgovAbstractDAO { /** * sample 데이터 조회 * @throws...
package com.sample.service.impl; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.sample.service.SampleService; import egovframework.rte.fdl.cmmn.AbstractServiceImpl; import egovframework.rte.psl.dataaccess.util.EgovMap; @Service("SampleService") public class ...
package com.sample.service; import egovframework.rte.psl.dataaccess.util.EgovMap; public interface SampleService { public EgovMap getSample() throws Exception; }
package com.sample.web; import javax.annotation.Resource; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; import com.sample.service.SampleService; import egovframework.rte.psl.dataaccess.util.EgovMap; ...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
package ttot.plugin; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.Date; import java.util.HashSet; import java.util.List; import org.apache.maven.artifact.DependencyResolutionRequiredException; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.pl...
package ttot.plugin; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.ja...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
package ttot.test; public class SomeClass { }
package ttot.channel; import java.io.IOException; import java.io.OutputStreamWriter; import java.net.Socket; import java.net.UnknownHostException; public class Source { private final String host; private final int port; public Source(String host, int port) { this.host = host; this.port = port; } public st...
package ttot.channel; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.ServerSocket; import java.net.Socket; import java.net.SocketException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class Destination { pub...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
/* * Copyright 2011 TTOT * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
package ttot.extensionmanager.api; import java.util.LinkedList; import java.util.List; public class ExtensionManagerException extends Exception { private static final long serialVersionUID = 1L; private List<Exception> exceptions = new LinkedList<Exception>(); public ExtensionManagerException(String message) ...
import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Random; public class Scriptor { static final int numDoctors = 50; static final int numPatients = 200; static String allergies[] = {"Shellfish", "Peanuts", "Lortab", "Chocolate...
package servlets; import java.io.IOException; import java.util.*; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServ...
package servlets; import java.io.IOException; import java.util.List; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpS...
package model; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Patient { private String patientID; private String name; private String race; private String gender; private String insurer; private S...
package model; import java.sql.Connection; import java.sql.Date; import java.sql.DriverManager; import java.sql.SQLException; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Queue; import javax.sql.rowset.FilteredRowSet; import ...
package model; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Patient { private String patientID; private String name; private String race; private String gender; private String insurer; private S...
package model; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import javax.sql.rowset.FilteredRowSet; ...
package it.unitn.testbed.client; import java.util.Date; import it.unitn.testbed.client.common.BriefTaskComponent; import it.unitn.testbed.client.common.MoteConfig; import com.google.gwt.user.client.rpc.AsyncCallback; /** * The async counterpart of {@link TestbedService} */ public interface TestbedServiceAsync { ...
package it.unitn.testbed.client; import it.unitn.testbed.client.panels.SetupPanel; import it.unitn.testbed.client.panels.TaskPanel; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.event.logical.shared.ResizeEvent; import com.google.gwt.event.logical.shared.Re...
package it.unitn.testbed.client; import it.unitn.testbed.client.common.BriefTaskComponent; import it.unitn.testbed.client.common.MoteConfig; import java.util.Date; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; /** * The client side stub for th...
/** * */ package it.unitn.testbed.client.panels; import gwtupload.client.IUploader; import gwtupload.client.SingleUploader; import gwtupload.client.IUploadStatus.Status; import it.unitn.testbed.client.Testbed; import it.unitn.testbed.client.common.MoteConfig; import com.google.gwt.user.client.rpc.AsyncCallback; im...
/** * */ package it.unitn.testbed.client.panels; import gwtupload.client.IUploader; import gwtupload.client.MultiUploader; import gwtupload.client.SingleUploader; import gwtupload.client.IUploadStatus.Status; import it.unitn.testbed.client.Testbed; import it.unitn.testbed.client.TestbedService; import it.unitn.test...
/** * */ package it.unitn.testbed.client.common; import java.io.Serializable; import java.util.List; /** * Described a task component, i.e. a mapping between a TinyOS binary and the * motes where this binary should be flashed. * * @author Stefan Guna * */ public class BriefTaskComponent implements Serializ...
/** * */ package it.unitn.testbed.client.common; import java.io.Serializable; /** * The configuration for a mote created from the XML descriptor of the * configuration. The configuration contains data required for flashing a mote * and received serial packets from the mote. A description of these can be * foun...
/** * */ package it.unitn.testbed.server.config; import gwtupload.server.UploadAction; import gwtupload.server.exceptions.UploadActionException; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.apache.commons.fileupload.FileItem; import org.apache.log4j.Logger; /** * This servlet...
package it.unitn.testbed.server.config; import it.unitn.testbed.client.common.MoteConfig; /** * Denotes an object that is interested in receiving notifications whenever a * change occurs in the testbed configuration. * * @author Stefan Guna * @see ConfigUpload * @see MoteConfig */ public interface ConfigUser ...
/** * */ package it.unitn.testbed.server.config; import java.io.IOException; import java.io.OutputStream; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.xml.parsers.ParserConfigu...
/** * */ package it.unitn.testbed.server.config; import it.unitn.testbed.client.common.MoteConfig; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; import javax.xml.parsers.DocumentBuilder; import javax.xml.parse...
/** * */ package it.unitn.testbed.server.task; import it.unitn.testbed.client.common.MoteConfig; import it.unitn.testbed.server.TestbedServiceImpl; import it.unitn.testbed.server.serial.SerialReceiver; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader;...
/** * */ package it.unitn.testbed.server.task; import java.util.ArrayList; // TODO move contents to file and do not store it into memory /** * Holds a mapping between a TinyOS image and the actual mote IDs where the * image should be ran. * * @author Stefan Guna * */ public class TaskComponent { private s...
/** * */ package it.unitn.testbed.server.task; import it.unitn.testbed.server.TestbedServiceImpl; import java.io.File; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.Timer; import java.util.TimerTask; import org.apache.log4j.Logger; /** *...
/** * */ package it.unitn.testbed.server.task; import it.unitn.testbed.server.serial.SerialReceiver; import java.util.Date; import java.util.TimerTask; import javax.mail.MessagingException; import javax.mail.Transport; import javax.mail.internet.AddressException; import javax.mail.internet.MimeMessage; import or...
/** * */ package it.unitn.testbed.server.task; import gwtupload.server.UploadAction; import gwtupload.server.exceptions.UploadActionException; import it.unitn.testbed.server.serial.SerialReceiver; import java.io.File; import java.util.HashMap; import java.util.List; import javax.servlet.http.HttpServletRequest; i...
/** * */ package it.unitn.testbed.server.task; import it.unitn.testbed.server.TestbedServiceImpl; import it.unitn.testbed.server.serial.MessageConsumer; import it.unitn.testbed.server.serial.SerialReceiver; import it.unitn.testbed.server.serial.TestbedClassLoader; import java.io.BufferedReader; import java.io.File...
/** * */ package it.unitn.testbed.server.task; import gwtupload.server.UploadAction; import gwtupload.server.exceptions.UploadActionException; import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.apache.commons.fileuplo...