text
stringlengths
3
1.18M
package at.fhstp.wificompass.view; import java.sql.SQLException; import org.metalev.multitouch.controller.MultiTouchController.PointInfo; import android.content.Context; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import at.fhstp.wificompass.Logger; import at.fhstp.wif...
/* * Created on Feb 10, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.view; import java.util.Vector; import org.metalev.multitouch.controller.MultiTouchController.PointInfo; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import ...
/* * Created on Mar 12, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.view; public interface RefreshableView { public void invalidate(); }
package at.fhstp.wificompass.view; import org.metalev.multitouch.controller.MultiTouchController.PointInfo; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Paint.Style; import android.graphics.RectF; import android.g...
/* * Created on Mar 12, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.view; import org.metalev.multitouch.controller.MultiTouchController.PointInfo; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.graphics.d...
/** * PhotoSorterView.java * * (c) Luke Hutchison (luke.hutch@mit.edu) * * TODO: Add OpenGL acceleration. * * Released under the Apache License v2. */ package at.fhstp.wificompass.view; import java.util.ArrayList; import org.metalev.multitouch.controller.MultiTouchController; import org.metalev.multitouch....
/* * Created on Mar 19, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.view; import org.metalev.multitouch.controller.MultiTouchController.PointInfo; import android.content.Context; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; impor...
/* * Created on Mar 19, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.view; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Paint.Style; import android.graphics.PointF; import a...
package at.fhstp.wificompass.view; import android.content.Context; import android.graphics.PointF; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import at.fhstp.wificompass.R; public class ScaleSliderDrawable extends MultiTouchDrawable { protected int id; public Scal...
package at.fhstp.wificompass.view; import java.sql.SQLException; import org.metalev.multitouch.controller.MultiTouchController.PointInfo; import android.content.Context; import android.graphics.Canvas; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import at.fhstp.wificom...
/* * Created on Apr 3, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.view; import android.content.Context; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import at.fhstp.wificompass.CompassListener; import at.fhstp.wificompass.Compass...
package at.fhstp.wificompass.view; import org.metalev.multitouch.controller.MultiTouchController.PointInfo; import android.content.Context; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import at.fhstp.wificompass.R; import at.fhstp.wificompass.userlocation.ManualLocation...
/* * Created on Mar 11, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.view; /** * @author Paul Woelfel (paul@woelfel.at) */ public interface Popup { /** * @param isPopupActive * @uml.property name="active" */ public void setActive(boolean isPopupActive); /** * @...
package at.fhstp.wificompass.view; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.os.Handler; import android.os.Message; import android.util.AttributeSet; import android.view.View; import at.fhstp.wificompass.userlo...
/* * Created on Feb 10, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.view; import java.util.ArrayList; import java.util.Iterator; import org.metalev.multitouch.controller.MultiTouchController.PointInfo; import org.metalev.multitouch.controller.MultiTouchController.PositionAndS...
/* * Created on Mar 19, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.view; public interface OkCallback { public void onOk(); }
package at.fhstp.wificompass.view; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.drawable.Drawable; /** * @author Paul Woelfel (paul@woelfel.at) */ public class ScaleLineDrawable extends MultiTouchDrawable { /...
/* * Created on May 16, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass; import java.util.ArrayList; import android.content.Context; /** * @author Paul Woelfel (paul@woelfel.at) */ public class CompassMonitor { static protected ArrayList<CompassListener> listeners=new Arra...
package at.fhstp.wificompass.trilateration; import java.util.HashMap; import java.util.Iterator; import java.util.Map.Entry; import java.util.Vector; import android.app.ProgressDialog; import android.content.Context; import android.graphics.PointF; import at.fhstp.wificompass.model.AccessPoint; import at.fhstp.wifico...
package at.fhstp.wificompass.trilateration; import java.util.Iterator; import java.util.Vector; import Jama.Matrix; import android.app.ProgressDialog; import android.content.Context; import android.graphics.PointF; import at.fhstp.wificompass.ToolBox; import at.fhstp.wificompass.model.AccessPoint; import at.fhstp.wif...
package at.fhstp.wificompass.trilateration; import java.util.Vector; import android.graphics.PointF; /** * @author Paul Woelfel (paul@woelfel.at) */ public class MeasurementDataSet { public static final int VALUE_X = 0; public static final int VALUE_Y = 1; public static final int VALUE_RSSI = 3; /** * @...
package at.fhstp.wificompass.trilateration; import java.util.Iterator; import java.util.Vector; import android.app.ProgressDialog; import android.content.Context; import android.graphics.PointF; import at.fhstp.wificompass.model.AccessPoint; import at.fhstp.wificompass.model.ProjectSite; public class WeightedCentroi...
/* * Created on Dec 12, 2011 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass; import java.text.SimpleDateFormat; import java.util.Date; import android.content.Context; import android.content.SharedPreferences; import android.util.Log; //TODO: comments and documentation /** * <p> Log...
/* * Created on Mar 9, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.userlocation; import java.util.Date; import android.content.Context; import at.fhstp.wificompass.model.Location; public class ManualLocationProvider extends LocationProviderImpl { public ManualLocationProvi...
/* * Created on Dec 8, 2011 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.userlocation; import java.util.Iterator; import java.util.List; import java.util.Vector; import at.fhstp.wificompass.Logger; import at.fhstp.wificompass.ToolBox; import at.fhstp.wificompass.model.Location; /*...
package at.fhstp.wificompass.userlocation; /** * An interface to be notified abuot detected steps and their directions. Also * there are hooks to to obtain values from sensors. * * @author Paul Smith, Paul Woelfel * */ public interface StepTrigger { /** * Called each time a step is triggered. * * @par...
/* * Created on Dec 8, 2011 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.userlocation; import at.fhstp.wificompass.model.Location; /** * @author Paul Woelfel (paul@woelfel.at) */ public interface LocationProvider { /** * set the LocationService, which should be updated on l...
/* * Created on May 11, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.userlocation; import at.fhstp.wificompass.Logger; /** * @author Paul Woelfel (paul@woelfel.at) */ public class StepDetector { protected static final int vhSize = 6; protected double[] values_history = ne...
/* * Created on Mar 31, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.userlocation; import at.fhstp.wificompass.model.Location; public interface LocationChangeListener { public void onLocationChange(Location loc); }
/* * Created on Feb 22, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.userlocation; /** * @author Paul Woelfel (paul@woelfel.at) */ public class LocationServiceFactory { /** * @uml.property name="ls" * @uml.associationEnd */ protected static LocationService ls=nu...
package at.fhstp.wificompass.userlocation; import java.util.Timer; import java.util.TimerTask; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import at.fhstp.wificompass.CompassLis...
/* * Created on Dec 7, 2011 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.userlocation; import java.util.List; import at.fhstp.wificompass.model.Location; /** * @author Paul Woelfel (paul@woelfel.at) */ public interface LocationService { /** * return current location * ...
/* * Created on Mar 19, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.userlocation; import android.content.Context; import at.fhstp.wificompass.model.Location; /** * @author Paul Woelfel (paul@woelfel.at) */ public abstract class LocationProviderImpl implements LocationProvi...
/* * Created on Mar 19, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.userlocation; import android.content.Context; import at.fhstp.wificompass.Logger; import at.fhstp.wificompass.model.Location; /** * @author Paul Woelfel (paul@woelfel.at) */ public class StepDetectionProv...
/* * Created on May 16, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; /** * @author Paul W...
/* * Created on May 16, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass; /** * @author Paul Woelfel (paul@woelfel.at) */ public interface CompassListener { /** * This method will be called, if the azimuth of the compass changes. The values are lowpass filtered, to get smother...
/* * Created on May 8, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.model; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.misc.BaseDaoEnabled; import com.j256.ormlite.table.DatabaseTable; /** * @author Paul Woelfel (paul@woelfel.at) */ @DatabaseTable(t...
/* * Created on Dec 8, 2011 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.model; import java.io.IOException; import java.sql.SQLException; import org.w3c.dom.Element; import org.xmlpull.v1.XmlSerializer; import at.fhstp.wificompass.interfaces.XMLSerializable; import at.fhstp.wifico...
/* * Created on Dec 20, 2011 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.model.xml; import java.io.IOException; import java.io.OutputStream; import java.io.Writer; import java.util.Iterator; import java.util.Properties; import android.util.Xml; public class XmlSerializer implemen...
/* * Created on Dec 20, 2011 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.model.xml; public class XMLSettings { public static final String XMLNS="http://www.fhstp.ac.at/wificompass"; public static final String XMLSHORTNS="wifi"; }
/* * Created on Dec 8, 2011 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.model; import java.util.Date; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.misc.BaseDaoEnabled; import com.j256.ormlite.table.DatabaseTable; /** * @author Paul Woelfel */ @DatabaseT...
/* * Created on Dec 31, 2011 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.model; import android.hardware.SensorEvent; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.misc.BaseDaoEnabled; import com.j256.ormlite.table.DatabaseTable; /** * @author Paul Woelfel...
package at.fhstp.wificompass.model; /** * @author Paul Woelfel (paul@woelfel.at) */ public class Bssid { /** * @uml.property name="bssid" */ protected String bssid; /** * @uml.property name="ssid" */ protected String ssid; /** * @uml.property name="capabilities" */ protected String capabiliti...
/* * Created on Dec 8, 2011 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.model; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.sql.SQLException; import java.util.ArrayList; import org.w3c.dom.Element; import org.xmlpull.v1.XmlSerializer; import andro...
/* * Created on Jan 20, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.model; import java.sql.SQLException; import android.net.wifi.ScanResult; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.misc.BaseDaoEnabled; import com.j256.ormlite.table.DatabaseTable;...
package at.fhstp.wificompass.model; import java.sql.SQLException; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.misc.BaseDaoEnabled; import com.j256.ormlite.table.DatabaseTable; /** * @author Paul Woelfel (paul@woelfel.at) */ @DatabaseTable(tableName = AccessPoint.TABLE_NAME) public class A...
/* * Created on Dec 22, 2011 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.model.helper; import java.sql.SQLException; import java.util.List; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.w...
package at.fhstp.wificompass.model.helper; import java.util.ArrayList; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.widget.BaseExpandableListAdapter; import android.widget.CheckBox;...
/* * Created on Dec 10, 2011 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.model.helper; import java.util.List; import java.util.Vector; import android.content.Context; import android.net.wifi.ScanResult; import android.net.wifi.WifiManager; import android.view.View; import android....
/* * Created on Jan 21, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.model.helper; import java.sql.SQLException; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; impo...
/* * Created on Dec 21, 2011 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.model.helper; import java.sql.SQLException; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.widget.Toast; import at.fhstp.wificompass.Logger; import at.fhstp.wifi...
/* * Created on Jan 20, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.model; import java.sql.SQLException; import java.util.ArrayList; import java.util.Collection; import at.fhstp.wificompass.model.helper.DatabaseHelper; import com.j256.ormlite.dao.Dao; import com.j256.ormlite...
/* * Created on Feb 22, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.wifi; import java.util.Date; import java.util.List; import java.util.Vector; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.Int...
/* * Created on Feb 22, 2012 * Author: Paul Woelfel * Email: frig@frig.at */ package at.fhstp.wificompass.wifi; import at.fhstp.wificompass.model.WifiScanResult; public interface WifiResultCallback { public void onScanFinished(WifiScanResult wr); public void onScanFailed(Exception ex); }
package at.woelfel.philip.filebrowser; import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.List; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.wi...
package at.woelfel.philip.filebrowser; import java.io.File; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.os.Environment; import android.util.Log; impor...
package de.uvwxy.footpath; import java.util.ArrayList; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Paint.Style; /** * * @author Paul Smith * */ public class ToolBox { public static float strokeWidth = 2.0f; public static Paint redPaint() { Paint p ...
package de.uvwxy.footpath.graph; import java.util.LinkedList; /** * A class to maintain a way with given parameters found in OSM/XML data. * @author Paul Smith */ public class GraphWay { // all nodes on this path ( ref0 -> ref1 -> ref2 -> ...) /** * @uml.property name="refs" */ private Linke...
package de.uvwxy.footpath.graph; import java.io.IOException; import java.util.LinkedList; import java.util.Stack; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; import android.content.res.XmlResourceParser; /** * This class is used to create a graph from XML files ...
package de.uvwxy.footpath.graph; import java.util.LinkedList; /** * A class to maintain a node with given parameters found in OSM/XML data. * @author Paul Smith */ public class GraphNode { /** * @uml.property name="lon" */ private double lon; /** * @uml.property name="lat" */ priva...
package de.uvwxy.footpath.graph; /** * A class to maintain an edge in the graph. * @author Paul Smith */ public class GraphEdge { /** * @uml.property name="node0" * @uml.associationEnd */ private GraphNode node0; /** * @uml.property name="node1" * @uml.associationEnd */ privat...
package de.uvwxy.footpath.graph; /** * * @author Paul Smith * */ public class GraphElement { // nothing, just to have a parent for GraphNode and GraphEdge // TODO: delete this? }
package de.uvwxy.footpath.graph; /** * A class to maintain a coordinate consisting of latitude and longitude, with a given level. * @author Paul Smith */ public class LatLonPos { /** * @uml.property name="lat" */ private double lat; /** * @uml.property name="lon" */ private double lon; ...
package de.uvwxy.footpath.core; /** * An interface to be notified abuot detected steps and their directions. Also * there are hooks to to obtain values from sensors. * * @author Paul Smith * */ public interface StepTrigger { /** * Called each time a step is triggered. * * @param now_ms the time stamp ...
package de.uvwxy.footpath.core; import java.util.List; import java.util.Timer; import java.util.TimerTask; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.util.Log; i...
package de.uvwxy.paintbox; import android.content.Context; import android.graphics.Canvas; import android.util.AttributeSet; import android.view.SurfaceHolder; import android.view.SurfaceView; import at.fhstp.wificompass.Logger; /** * A class managing the creation of a canvas to draw on. Usage: Create a cl...
package de.uvwxy.paintbox; import android.graphics.Canvas; import android.view.SurfaceHolder; /** * A class to create a thread to repaint the graphics. * @author Paul Smith */ class PaintThread extends Thread { private SurfaceHolder surfaceHolder; /** * @uml.property name="pBox" * @uml.associa...
package org.metalev.multitouch.controller; /** * MultiTouchController.java * * Author: Luke Hutchison (luke.hutch@mit.edu) * Please drop me an email if you use this code so I can list your project here! * * Usage: * <code> * public class MyMTView extends View implements MultiTouchObjectCanvas<PinchWidg...
import java.util.Enumeration; import javax.media.j3d.Behavior; import javax.media.j3d.BoundingSphere; import javax.media.j3d.Transform3D; import javax.media.j3d.TransformGroup; import javax.media.j3d.WakeupCondition; import javax.media.j3d.WakeupOnElapsedFrames; import javax.vecmath.Point3d; import javax.vecm...
import java.util.Enumeration; import javax.media.j3d.Appearance; import javax.media.j3d.Behavior; import javax.media.j3d.BoundingSphere; import javax.media.j3d.Bounds; import javax.media.j3d.Node; import javax.media.j3d.Shape3D; import javax.media.j3d.Transform3D; import javax.media.j3d.TransformGroup; impor...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.awt.event.KeyEvent; import java.io.IOException; import java.util.Enumeration; import java.math.*; import java.lang.Math; import java.util.logging.Level; import java.util.logging.Logger; import javax.media.j3d...
import java.net.*; // for Socket, ServerSocket, and InetAddress import java.io.*; // for IOException and Input/OutputStream import java.util.logging.Level; import java.util.logging.Logger; public class Server extends Thread { private static final int BUFSIZE = 4096; // Size of receive buffer private in...
import java.net.*; // for Socket import java.io.*; // for IOException and Input/OutputStream import java.util.logging.Level; import java.util.logging.Logger; public class Client extends Thread { private String server=""; int servPort = 5441; private OutputStream out; private Socket socket; pri...
import javax.vecmath.*; import javax.xml.parsers.*; import org.xml.sax.InputSource; import org.w3c.dom.*; import java.io.*; public class tcpipLayer { void sendData(Client connectionToPlayer, String data) throws IOException { // System.out.println(data); connectionToPlayer.sendData(data); //C...
import java.applet.Applet; import java.awt.BorderLayout; import java.awt.GraphicsConfiguration; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import javax.media.j3d.AmbientLight; import javax.media.j3d.Appearance; import javax.media.j3d.Background; import javax.me...
import java.io.IOException; import javax.media.j3d.*; import javax.vecmath.*; public class communicationBridge { private tcpipLayer connectToSocket = new tcpipLayer(); void sendWorldInfo(Client connectionToPlayer, TransformGroup puck, TransformGroup myHandle, Vector3f puckdirection) throws IOException { ...
/** Automatically generated file. DO NOT MODIFY */ package com.tszy.mrpoid; public final class BuildConfig { public final static boolean DEBUG = true; }
package com.tszy.core; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Rect; public class Emulator { private EmulatorView view; static { System.loadLibrary("emulator"); } public Emulator(Context context) { view = new EmulatorView(context, this); init(); } public ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ru.javadevelop.crm.controllers; import java.util.List; import javax.ejb.EJB; import javax.faces.application.FacesMessage; import javax.faces.bean.ManagedBean; import javax.faces.component.UIInput; import javax.f...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ru.javadevelop.crm.ejb.asterisk_integration.entities; import java.io.Serializable; import java.util.Date; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ru.javadevelop.crm.ejb.asterisk_integration.entities; import java.io.Serializable; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; i...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ru.javadevelop.crm.ejb.asterisk_integration; import java.util.List; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.EntityTransaction; import javax.persistence.Persis...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ru.javadevelop.crm.ejb.Client; import javax.ejb.Stateless; import javax.ejb.LocalBean; /** * * @author navff */ @Stateless @LocalBean public class ClientEJB { // Add business logic below. (Right-click i...
import java.io.*; import java.util.*; import edu.cornell.cs.sam.io.SamTokenizer; import edu.cornell.cs.sam.io.Tokenizer; import edu.cornell.cs.sam.io.Tokenizer.TokenType; public class BaliCompiler { static Hashtable<String, Integer> method_list; static int label_count; static int local_count; public static vo...
/******************************************************************************* * Copyright (c) 2011 Bruno Quoitin. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available a...
/******************************************************************************* * Copyright (c) 2011 Bruno Quoitin. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available a...
/******************************************************************************* * Copyright (c) 2011 Bruno Quoitin. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available a...
/******************************************************************************* * Copyright (c) 2011 Bruno Quoitin. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available a...
/******************************************************************************* * Copyright (c) 2011 Bruno Quoitin. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available a...
package reso.utilities; import java.io.PrintWriter; import reso.common.HardwareInterface; import reso.common.Link; import reso.common.Message; import reso.common.Network; import reso.common.Node; import reso.ip.IPAddress; import reso.ip.IPHost; import reso.ip.IPInterfaceAdapter; import reso.ip.IPRouteEntry; public c...
package reso.utilities; import java.util.HashSet; import reso.common.HardwareInterface; import reso.common.Network; import reso.common.Node; import reso.ip.IPAddress; import reso.ip.IPHost; import reso.ip.IPInterfaceAdapter; import reso.ip.IPLoopbackAdapter; import reso.ip.IPRouteEntry; import reso.ip.IPRouter; publ...
/******************************************************************************* * Copyright (c) 2011 Bruno Quoitin. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available a...
/******************************************************************************* * Copyright (c) 2011 Bruno Quoitin. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available a...
/******************************************************************************* * Copyright (c) 2011 Bruno Quoitin. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available a...
/******************************************************************************* * Copyright (c) 2011 Bruno Quoitin. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available a...
/******************************************************************************* * Copyright (c) 2011 Bruno Quoitin. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available a...
/******************************************************************************* * Copyright (c) 2011 Bruno Quoitin. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available a...
package reso.ip; import reso.common.AbstractApplication; import reso.common.Message; public class ICMPProtocol extends AbstractApplication implements IPInterfaceListener { public static final String PROTO_NAME= "ICMP"; public static final int PROTO_NUM= Datagram.allocateProtocolNumber(PROTO_NAME); public class...
/******************************************************************************* * Copyright (c) 2011 Bruno Quoitin. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available a...
/******************************************************************************* * Copyright (c) 2011 Bruno Quoitin. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available a...