text stringlengths 3 1.18M |
|---|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.nasa.telescopiHubble;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.Reader;
import java.io.StreamTokenizer;
public class ControladorTelescopi {
Reader reader;
StreamToken... |
/*
* Copyright (C) 2008 Mihai Preda.
*
* 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 agre... |
/*
* Copyright (C) 2007-2009 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2008 Mihai Preda.
*
* 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 agre... |
/*
* Copyright (C) 2007-2008 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2008 Mihai Preda.
*
* 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 agre... |
/*
* Copyright (C) 2007-2008 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2007-2009 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2008-2009 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2007-2009 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2007-2008 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2007-2009 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2008-2009 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2007-2009 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2009 Mihai Preda.
*
* 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 agre... |
/*
* Copyright (C) 2008-2009 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2007-2008 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2007-2008 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2008-2009 Mihai Preda.
*
* 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... |
package org.javia.arity;
public abstract class ContextFunction extends Function {
private static EvalContext context = new EvalContext();
private static final double NO_ARGS[] = new double[0];
private static final Complex[] NO_ARGS_COMPLEX = new Complex[0];
abstract public double eval(double args[], E... |
/*
* Copyright (C) 2007-2008 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2008 Mihai Preda.
*
* 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 agre... |
/*
* Copyright (C) 2008 Mihai Preda.
*
* 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 agre... |
package org.javia.arity;
// f'(x)=Im(f(x+i*h)/h)
public class Derivative extends Function {
private final Function f;
private Complex c = new Complex();
private static final double H = 1e-12;
private static final double INVH = 1/H;
public Derivative(Function f) throws ArityException {
... |
/*
* Copyright (C) 2008 Mihai Preda.
*
* 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 agre... |
/*
* Copyright (C) 2006-2009 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2007-2008 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2007-2008 Mihai Preda.
*
* 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... |
/*
* Copyright (C) 2007-2008 Mihai Preda.
*
* 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... |
package edu.ncsu.csc.ip.client.protocol;
import java.net.DatagramPacket;
import edu.ncsu.csc.ip.common.Log;
import edu.ncsu.csc.ip.common.Protocol;
/**
* Class <code></code>
*
* @author Moin Ayazifar <mayazif@ncsu.edu>
* @author Steven Elliott <sdelliot@ncsu.edu>
*
*/
public class ProtocolClientImpl implemen... |
package edu.ncsu.csc.ip.client.run;
import java.io.IOException;
import edu.ncsu.csc.ip.client.PeerClient;
public class RunSender {
public static void main(String[] args) throws IOException {
System.out.println("Starting test");
PeerClient pc = new PeerClient(args);
pc.runClient();
System.out.pri... |
package edu.ncsu.csc.ip.client.run;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import edu.ncsu.csc.ip.client.PeerClient;
import edu.ncsu.csc.ip.common.Log;
public class RunTask1 {
public static void main(String[] args)... |
package edu.ncsu.csc.ip.client.run;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.UnknownHostException;
import edu.ncsu.csc.ip.client.PeerClient;
import edu.ncsu.csc.ip.common.Log;
public class RunTask3 {... |
package edu.ncsu.csc.ip.client.run;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.UnknownHostException;
import edu.ncsu.csc.ip.client.PeerClient;
import edu.ncsu.csc.ip.common.Log;
public class RunTask2 {... |
package edu.ncsu.csc.ip.client;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.L... |
package edu.ncsu.csc.ip.client;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import edu.ncsu.csc.ip.client.protocol.ProtocolClientImpl;
import edu.ncsu.csc.ip.common.Log;... |
package edu.ncsu.csc.ip.server.protocol;
import java.net.DatagramPacket;
import edu.ncsu.csc.ip.common.Protocol;
/**
* Class <code></code>
*
*
*
* @author Moin Ayazifar <mayazif@ncsu.edu>
* @author Steven Elliott <sdelliot@ncsu.edu>
*
*/
public class ProtocolServerImpl implements Protocol {
private Da... |
package edu.ncsu.csc.ip.server;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.util.Arrays;
import java.util.Random;
import edu.ncsu.csc.ip.common.Log;
import edu.ncsu.csc.ip.server.protocol.ProtocolServerImpl;
/**
* Class <code>Re... |
package edu.ncsu.csc.ip.server;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.util.Arrays;
import edu.ncsu.csc.ip.server.protocol.ProtocolServerImpl;... |
package edu.ncsu.csc.ip.common;
import java.net.DatagramSocket;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.Socket;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.Enumeration;
public class NetworkUtils {
pub... |
package edu.ncsu.csc.ip.common;
import java.net.DatagramPacket;
/**
* Class <code></code>
*
*
*
* @author Moin Ayazifar <mayazif@ncsu.edu>
* @author Steven Elliott <sdelliot@ncsu.edu>
*
*/
public interface Protocol {
public static final String PROTOCOL_VERSION = "P2MP-FTP/1.0";
public static final Str... |
package edu.ncsu.csc.ip.common;
public class TimeEstimator {
public static double finel_transfer_delay(int n, double rtt,
double timeout, double p, int filesize, int mss) {
return (filesize / mss) * expected_delay(n, rtt, timeout, p);
}
/*
*
* p is probability of success n is receiver count
*/
public... |
package edu.ncsu.csc.ip.common;
public class Log {
private static boolean LOG_DISABLED = false;
private static boolean ERR_LOG_DISABLED = false;
public static void printMessage(String text, String message) {
if (!LOG_DISABLED) {
System.out.println("----------- "+text+" -------------");
System... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Flag contiene una GreenfootImage que es la encargada de la imagen de la bandera,
* y tambien un objeto de la clase Mensaje que es la encargada de mostrar algun mensaje.
*
* @author (Angel Isai Zavala Cano)
* @v... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Barrier contiene en el actua metodos de la superclase como el moverse y checar si un jugador toca el
* obstaculo.
*
* @author (Angel Isai Zavala Cano)
* @version (03 07 2013)
*/
public class Barrier extends... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Button contiene un booleano que representa si esta presionado el boton o no, esta variable
* la heredan otros botones.
* Contiene un metodo para cambiar y obtener esa variable.
* Se inicializa pressed en false.
*... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Element contiene variables como forceJump que indican la fuerza de salto, y sus respectivos metodos
* para acceder y modificar su valor.
* Una variable vSpeed que es la de velocidad vertical, esta es ocupada para sal... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
/**
* La clase Mensaje contiene un constructor que recibe una cadena que sera el mensaje a mostrar, un entero
* que es la medida del letrero, y los grados a rotar el mensaje.
* Tiene un fondo transparente. P... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.ArrayList;
/**
* La clase Bonus contiene una GifImagen que es la encargada de la imagen del bonus de fuerza de salto,
* desde esta clase se le manda un mensaje al Contador del mundo "force Jump" que aumente en una u... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Play contiene una GreenfootImage que es la encargada de la imagen del boton play del juego.
* En actua pregunta si se esta tocando este boton, si es verdadero entonces cambia su valor pressed
* que heredo de la clase... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.ArrayList;
/**
* En la clase Pista se encuentran los contadores de las vidas, fuerza de salto, distancia, entre otras.
* Tambien desde aqui se mandan llamar algunos objetos de las diferentes clases y ponerlos en el ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.ArrayList; // Para escalar las imagenes del jugador
/**
* La clase Player contiene un arreglo de GreenfootImage para las imagenes del jugador cuando va hacia la derecha.
* Una GifImage cuando no esta haciendo nada, ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Records contiene una GreenfootImage que es la encargada de la imagen del boton records del escenario.
* Si se presiono entonces cambia su valor de false a true, con un mensaje a la superclase.
*
* @author (Angel I... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Barrel contiene no contiene variables, depende de su imagen de fondo que fue seleccionada con setImage cuando se
* creo esta clase, se toma la imagen y se escala a un tamaño.
* Heredo los metodos del movimiento del ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Wall contiene una GreenfootImage que es la encargada de la imagen del muro de tipo Obstaculo.
* En el actua utiliza los metodos de la superclase Obstacle como el movimiento, y el checar si esta tocando
* este obstacu... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.ArrayList;
/**
* La clase Adel contiene una GifImage que es la encargada de la imagen del enemigo Adel, que es el enemigo que
* aparece en el segundo nivel del juego.
* Heredo metodos para moverse y checar si est... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Obstacle contiene un constructor con una medida para los obstaculos.
* Contiene diferentes metodos para acceder a las medidas del obstaculo, restar vidas al jugador si ha tocado
* algun obstaculo, y mandarle un me... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Back contiene una GreenfootImage que es la encargada de la imagen del boton back en el escenario.
* Si se presiona cambia su valor de false a true.
*
* @author (Angel Isai Zavala Cano)
* @version (03 07 2013)
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.ArrayList;
/**
* La clase Kratos contiene una GifImage que es la encargada de la imagen del enemigo kratos,
* que aparece en el primer nivel del juego.
* Heredo metodos del movimiento y checar si esta tocando al j... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Enemy contiene una medida en ancho y alto, por si los obstaculos son de forma vertical, u horizontal, si
* son en forma esferica entonces su radio seria medida en ancho (sizeW/2).
* Contienen metodos para restar v... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
/**
* A Counter class that allows you to display a numerical value on screen.
*
* The Counter is an actor, so you will need to create it, and then add it to
* the world in Greenfoot. If you keep a reference to ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferInt;
import java.io.BufferedInputS... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Lives contiene una GreenfootImage que es la encargada del item de lives que aparece en el escenario.
* Se escala a un tamaño predefinido, tiene su propio metodo de movimiento y de checar si esta tocando a un objeto de ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Help contiene una variable GreenfootImage que es la encargada de la imagen del boton help
* del escenario, si se presiona cambia su valor pressed = flase a true.
*
* @author (your name)
* @version (a version nu... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Credits contiene una GreenfootImage que es la encargada de la imagen del boton creditos del escenario
* En el actua pregunta si se esta presionando este boton, si es verdadero entonces manda un mensaje a la superclase
... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* La clase Rock contiene una GreenfootImage que es la encargada de la imagen del obstaculo rock, heredo metodos
* del movimiento del obstaculo y de checar si esta tocando un objecto de la clase Player.
*
* @author (Angel I... |
package controllayer;
import java.io.FileOutputStream;
import java.util.Date;
import com.itextpdf.text.BaseColor;
import com.itextpdf.text.Document;
import com.itextpdf.text.Element;
import com.itextpdf.text.Font;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpd... |
package testlayer;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
/**
* A simple skeleton to show the picture, might get deleted in the final version of the program
* @author Gruppe 3
*/
public class Skeleton extends JFrame {
public Skeleton() {
initUI();
}
pri... |
package testlayer;
import static org.junit.Assert.*;
import java.io.FileNotFoundException;
import java.sql.SQLException;
import modellayer.Queen;
import modellayer.Breeder;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import dblayer.DBQueen;
import dblayer.DBCo... |
package testlayer;
import static org.junit.Assert.*;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
public class DBTest {
@BeforeClass
public static void testSetup(){
}
@AfterClass
public static void testCleanup(){
}
@Test
public void test() ... |
package testlayer;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JFrame;
import javax.swing.JPanel;
i... |
/**
* /**
* Handles the class DBChartTest.
*
* Author: Group 3
* Date: 07-04-2014 Version: 1.0
*/
package testlayer;
import static org.junit.Assert.*;
import java.io.FileNotFoundException;
import java.sql.SQLException;
import java.util.ArrayList;
import modellayer.Breeder;
import modellayer... |
/**
* /**
* Handles the class DBCitiesTest.
*
* Author: Group 3
* Date: 07-04-2014 Version: 1.0
*/
package testlayer;
import static org.junit.Assert.*;
import java.io.FileNotFoundException;
import java.sql.SQLException;
import modellayer.City;
import org.junit.AfterClass;
import org.junit... |
package testlayer;
import static org.junit.Assert.*;
import java.io.FileNotFoundException;
import java.sql.SQLException;
import modellayer.Breeder;
import modellayer.City;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import dblayer.DBBreeder;
import dblayer.DBCit... |
/**
* /**
* Handles the class DBCompendiumTest.
*
* Author: Group 3
* Date: 07-04-2014 Version: 1.0
*/
package testlayer;
import static org.junit.Assert.*;
import java.io.FileNotFoundException;
import java.sql.SQLException;
import modellayer.Compendium;
import org.junit.AfterClass;
import... |
package guilayer;
import javax.swing.JPanel;
import controllayer.BreederCtr;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JTextField;
import javax.swing.JPasswordField;
import javax.swing.JButton;
import javax.swing.border.TitledBorder;
import java.awt.event.ActionEvent;
impor... |
package guilayer;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.sql.SQLException;
import javax.swing.AbstractAction;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuI... |
package guilayer;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JPanel;
import javax.swing.JButton;
import controllayer.CompendiumCtr;
import dblayer.*;
import modellayer.*;
public class MakeCompendiumPanel extends JPanel {
/**
* Create the panel.
*/... |
package guilayer;
import modellayer.Queen;
import java.awt.CardLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.sw... |
package guilayer;
import java.awt.CardLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import contro... |
package guilayer;
import modellayer.Breeder;
import java.util.ArrayList;
import java.util.List;
import javax.swing.table.AbstractTableModel;
public class BreederTableModel extends AbstractTableModel {
private List<Breeder> breeders;
public BreederTableModel(List<Breeder> breeders) {
th... |
package dblayer;
import java.sql.*;
import java.util.ArrayList;
import modellayer.City;
/**
* @author Gruppe 3
*/
public interface IFDBCity {
public ArrayList<City> getAllCity();
public City selectSingleCity(int zipCode) throws SQLException;
public int insertCity(City c) throws SQLExceptio... |
package dblayer;
import modellayer.City;
import java.sql.*;
import java.util.ArrayList;
/**
*
* @author Gruppe 3
*
*/
public class DBCity implements IFDBCity {
private Connection con;
/**
*
*/
public DBCity()
{
con = DBConnection.getInstance().getDBcon();
... |
package dblayer;
import java.sql.*;
import java.util.ArrayList;
import modellayer.Queen;
/**
* @author Gruppe 3
*/
public interface IFDBQueen {
public ArrayList<Queen> getAllQueens(boolean retriveAssociation);
public Queen searchQueenOnName(String name, boolean retriveAssociation) throws SQLEx... |
package dblayer;
import java.sql.SQLException;
import java.util.ArrayList;
import modellayer.PartChart;
/**
*
* @author Gruppe 3
*
*/
public interface IFDBPartChart {
public ArrayList<PartChart> getAllPartCharts(boolean retriveAssociation);
public PartChart searchPartChartOnName(String name, ... |
package dblayer;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import modellayer.Chart;
import modellayer.PartChart;
import modellayer.Queen;
/**
* DBChart class
* @author... |
package dblayer;
import java.sql.SQLException;
import java.util.ArrayList;
import modellayer.Chart;
/**
*
* @author Gruppe 3
*
*/
public interface IFDBChart {
public ArrayList<Chart> getAllCharts(boolean retriveAssociation);
public Chart searchChartOnName(String name, boolean retriveAssociati... |
package dblayer;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStreamReader;
import java.sql.*;
import org.apache.ibatis.jdbc.ScriptRunner;
public class DBConnection {
//constans used to get access to the database
//SQL Server
private static final Strin... |
package dblayer;
import java.sql.SQLException;
import java.util.ArrayList;
import modellayer.Compendium;
/**
* @author Gruppe 3
*/
/*
* Jeg har ingen anelse om hvorfor denne her kommer med fejl
*/
public interface IFDBCompendium {
public ArrayList<Compendium> getAllCompendiums(boolean retrive... |
package dblayer;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import modellayer.PartChart;
import modellayer.Queen;
/**
* DBPartChart class
* @author Gruppe 3
*
*/
pu... |
package dblayer;
import java.sql.*;
import java.util.ArrayList;
import modellayer.Breeder;
/**
* @author Gruppe 3
*/
public interface IFDBBreeder {
public ArrayList<Breeder> getAllBreeders(boolean retriveAssociation);
public Breeder selectSingleBreeder(int breederID, boolean retriveAssociation) ... |
package dblayer;
import java.sql.*;
import java.util.ArrayList;
import modellayer.City;
import modellayer.Queen;
public class DBQueen implements IFDBQueen {
private Connection con;
private DBBreeder dbBreeder = new DBBreeder();
public DBQueen()
{
con = DBConnection.getInstance().getDBcon();
... |
/**
* @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm
* @Version 16-12-2014
*/
package tests;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import modelLayer.Trailer;
import org.junit.Test;
import dbLayer.DbBusinessPartner;
import dbLayer.DbTrailer;
/**
* Unit test... |
/**
* @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm
* @Version 16-12-2014
*/
package tests;
import static org.junit.Assert.fail;
import org.junit.Test;
import dbLayer.DbConnection;
public class TestDbConnection {
@Test
public void test() {
DbConnection dbCon = DbConnection.getIns... |
/**
* @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm
* @Version 16-12-2014
*/
package tests;
import static org.junit.Assert.fail;
import modelLayer.Customer;
import modelLayer.Supplier;
import org.junit.Test;
import dbLayer.DbBusinessPartner;
import dbLayer.DbMaxId;
public class TestDbB... |
/**
* @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm
* @Version 16-12-2014
*/
package tests;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import modelLayer.ChartecCode;
import modelLayer.Disposition;
import modelLayer.Driver;
import modelLayer.Trailer;
import org.jun... |
/**
* @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm
* @Version 16-12-2014
*/
package tests;
import static org.junit.Assert.fail;
import java.sql.Date;
import java.util.ArrayList;
import modelLayer.DispositionList;
import org.junit.Test;
import dbLayer.DbDispositionList;
import dbLaye... |
/**
* @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm
* @Version 16-12-2014
*/
package tests;
import static org.junit.Assert.*;
import java.sql.Date;
import modelLayer.Disposition;
import modelLayer.DispositionList;
import org.junit.Test;
import ctrLayer.CtrBooking;
import ctrLayer.CtrDi... |
/**
* @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm
* @Version 16-12-2014
*/
package tests;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import modelLayer.ChartecCode;
import org.junit.Test;
import dbLayer.DbChartecCode;
public class TestDbChartecCode {
DbChart... |
/**
* @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm
* @Version 16-12-2014
*/
package tests;
import static org.junit.Assert.fail;
import java.sql.Date;
import java.util.ArrayList;
import modelLayer.Booking;
import modelLayer.Customer;
import org.junit.Test;
import dbLayer.DbBooking;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.