text
stringlengths
3
1.18M
package tw.com.softleader.json.jackson.entity; import org.apache.commons.lang.builder.ToStringBuilder; public class Question01Entity { private Long id; private String account; private String name; @Override public String toString() { return ToStringBuilder.reflectionToString(this); } ...
package tw.com.softleader.json.jackson.entity; import org.apache.commons.lang.builder.ToStringBuilder; public class Question07Cat extends Question07Animal { private String color; @Override public String toString() { return ToStringBuilder.reflectionToString(this); } public String getColor() { ...
package tw.com.softleader.json.jackson.entity; import org.apache.commons.lang.builder.ToStringBuilder; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown=true) public class Question02Entity { private Long id; private String account; private String n...
package tw.com.softleader.json.jackson.entity; import org.apache.commons.lang.builder.ToStringBuilder; public class Question03Entity { private Long id = 3L; private String account = "naomi"; private String name = "Naomi Liu"; @Override public String toString() { return ToStringBuilder.refl...
package tw.com.softleader.json.jackson.entity; import org.apache.commons.lang.builder.ToStringBuilder; import com.fasterxml.jackson.annotation.JsonProperty; public class Question06Entity { @JsonProperty("iD") private Long id; @JsonProperty("aCcount") private String account; @JsonProperty("nam...
package tw.com.softleader.json.jackson.entity; import java.util.List; public class Question07Pets { private List<Question07Animal> pets; public List<Question07Animal> getPets() { return pets; } public void setPets(List<Question07Animal> pets) { this.pets = pets; } }
package tw.com.softleader.json.jackson.entity; import org.apache.commons.lang.builder.ToStringBuilder; public class Question07Dog extends Question07Animal { private Integer age; @Override public String toString() { return ToStringBuilder.reflectionToString(this); } public Integer getAge() { ...
package tw.com.softleader.json.jackson.entity; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeInfo.As; import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; @JsonTypeInfo(use=Id.CLASS, include=As.PROPERTY, property="softleader@class") public abstract cl...
package tw.com.softleader.json.jackson.entity; import java.util.Map; import org.apache.commons.lang.builder.ToStringBuilder; public class Question05Entity { private Long id; private String account; private String name; private Map<String, Integer> carMap; @Override public String toS...
package tw.com.softleader.json.jackson.entity; import org.apache.commons.lang.builder.ToStringBuilder; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; //@JsonIgnoreProperties({"name","account"}) public class Question08Entity { private Long i...
package gomoku; import java.io.FileWriter; import java.io.IOException; import java.util.GregorianCalendar; import javax.swing.JLabel; import monte.MovePropose; public class Game { public static int buffer = 3; public static int margin = 20; public static int dist; public static int n = 15; public static int T...
package gomoku; import java.awt.Graphics; import java.util.ArrayList; import javax.swing.JPanel; public class ChessBoardDrawer extends JPanel { /** * */ private static final long serialVersionUID = 1L; private final ArrayList<Line> lines = new ArrayList<Line>(); public ArrayList<CrossPoint> points = new Ar...
package gomoku; import java.util.ArrayList; import java.util.Collections; public class ChessBoardCheckArea { private int[] chessBoardStatus; private int rightEdge=-1; private int leftEdge=ChessBoardConstant.ChessBoardWidth+1; private int topEdge= -1; private int radius = 3; private int bottomEdge = C...
package gomoku; import java.awt.Color; import java.awt.Graphics; public class CrossPoint { private int piece = 0; private int X; private int Y; private boolean isCurrent; public CrossPoint(int x, int y) { this.setX(x); this.setY(y); this.setPiece(0); } public int getPiece() { return piece; } public v...
package gomoku; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JPanel; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.border.BevelBorder; import javax.swing.JButton; import javax.swing.JLabel; import java.awt.event....
package monte; import gomoku.Minimax; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception{ MovePropose movepropose = new MovePropose(); //movepropose.firstmove(); /* int[] pieces = new int[15 *...
package monte; /*A board for playing Gomoku. Conceptually, a board is a square composed of * points. Each point may be empty or hold a black or a white stone. The * points can be addressed either by pairs of x/y coordinates, ranging from * 1 to the width of the board, or by a single z index, ranging from 0 ...
package monte; // A Move consists of a numPoints and a side. (color and Vertex) // Move also has wintime public class Move { public int row; public int column; public int side; public int numPoints ; public int wintime = 0; Move(int numPoints){this.numPoints =numPoints; this.winti...
package edu.cmu.cs211.chess.engine; import java.util.Observer; import edu.cmu.cs211.chess.board.ArrayBoard; import edu.cmu.cs211.chess.board.ArrayMove; import edu.cmu.cs211.chess.board.Board; import edu.cmu.cs211.chess.search.Searcher; import edu.cmu.cs211.chess.server.Hub; import edu.cmu.cs211.chess.unittested.Teste...
package edu.cmu.cs211.chess.board; import edu.cmu.cs211.chess.util.Creatable; /** * Stores enough information about the state of the board and * the move being applied to undo that move later. * * This class exists for the sole purpose of speeding up the * search. We don't want to be copying the entire board ...
package edu.cmu.cs211.chess.board; import static edu.cmu.cs211.chess.board.ArrayPiece.ALL_PIECES; import static edu.cmu.cs211.chess.board.ArrayPiece.BISHOP; import static edu.cmu.cs211.chess.board.ArrayPiece.BLACK_BISHOP; import static edu.cmu.cs211.chess.board.ArrayPiece.BLACK_KING; import static edu.cmu.cs211....
package edu.cmu.cs211.chess.board; import edu.cmu.cs211.chess.util.Creatable; import edu.cmu.cs211.chess.util.Predicate; import static edu.cmu.cs211.chess.board.ArrayBoard.*; /** * Pieces are represented by three things * - color (white or black) * - type (king,queen,rook,knight,bishop, or pawn) * ...
package edu.cmu.cs211.chess.board; import java.util.List; import edu.cmu.cs211.chess.board.Move; import edu.cmu.cs211.chess.util.Creatable; public interface Board<M extends Move<M>, B extends Board<M, B>> extends Creatable<B> { /** * Initializes the state of the board according to the specified fen. ...
package edu.cmu.cs211.chess.board; import edu.cmu.cs211.chess.util.Creatable; public interface Move<M extends Move<M>> extends Creatable<M> { /** * @return true iff this move is a capture move. */ public boolean isCapture(); /** * @return true iff this move promoted a pawn. */ public boolean...
package edu.cmu.cs211.chess.board; import static edu.cmu.cs211.chess.board.ArrayBoard.*; /** * Represents a move via the original source piece, * The original dest piece, and a possible piece * to promote into. * * We need the capture boolean for enpassant captures. * * @author Owen Durni (opd@and...
package edu.cmu.cs211.chess.board; import java.util.HashMap; public class RepetitionTable<M extends Move<M>, B extends Board<M, B>> { private HashMap<B, Integer> rep = new HashMap<B, Integer>(); public int lookup(B b){ if(rep.containsKey(b)) return rep.get(b); return 0; } public void delta...
/** * Maintains separate piece lists for every type of non-empty piece. */ package edu.cmu.cs211.chess.board; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import edu.cmu.cs211.chess.util.Iteratorable; import static edu.cmu.cs211.chess.board.Arra...
package edu.cmu.cs211.chess.unittested; import java.util.HashMap; import java.util.Iterator; import java.util.List; import edu.cmu.cs211.chess.board.ArrayBoard; import edu.cmu.cs211.chess.board.Board; import edu.cmu.cs211.chess.board.Move; import edu.cmu.cs211.chess.search.AbstractSearcher; /** * An implementation ...
package edu.cmu.cs211.chess.unittested; import java.util.Iterator; import edu.cmu.cs211.chess.board.ArrayBoard; import edu.cmu.cs211.chess.board.ArrayPiece; import edu.cmu.cs211.chess.evaluation.Evaluator; public class TestedEvaluator implements Evaluator<ArrayBoard> { private static final int INFINITY = 1000000...
package edu.cmu.cs211.chess.playchess.offline; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.List; import edu.cmu.cs211.chess.board.ArrayBoard; import edu.cmu.cs211.chess.board.ArrayMove; import edu.cmu.cs211.chess.engine.Engin...
package edu.cmu.cs211.chess.playchess.online; import java.awt.Container; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPasswordField; import javax.swing.JTextFiel...
package edu.cmu.cs211.chess.evaluation; import edu.cmu.cs211.chess.board.Board; /** * An evaluator that essentially does nothing. */ public class NoEvaluator<B extends Board<?, B>> implements Evaluator<B> { public int eval(B board) { return 0; } public int infty() { return 2; } public int mate() { retu...
package edu.cmu.cs211.chess.evaluation; import edu.cmu.cs211.chess.board.Board; public interface Evaluator<B extends Board<?, B>> { /** * @return the constant value that is used to represent mate for this * evaluator. */ public int mate(); /** * @return the constant value that is used to represent...
package edu.cmu.cs211.chess.tests; import static edu.cmu.cs211.chess.tests.TestUtil.evaluatorTest; import org.junit.Test; /** * This class tests the version of the evaluator you are * required to write for the unit tests on FrontDesk. * * You should be able to add any tests that you are * failing on FrontDesk h...
package edu.cmu.cs211.chess.tests; import org.junit.Test; /** * This class tests the version of alpha beta you are * required to write for the unit tests on FrontDesk. * * You should be able to add any tests that you are * failing on FrontDesk here and debug them locally. */ public class AlphaBetaTest { @Tes...
package edu.cmu.cs211.chess.tests; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.util.Arrays; import java.util.List; import edu.cmu.cs211.chess.board.ArrayBoard; import edu.cmu.cs211.chess.board.ArrayMove; import edu.cmu.cs211.chess.unittested.TestedAlphaBetaFixe...
package edu.cmu.cs211.chess.tests.internal; import edu.cmu.cs211.chess.board.Board; import static org.junit.Assert.*; /** * This class aids in testing the Board interface. * * You do not need to edit this file. It is provided * in case you want to write your own board and use * similar tests on it. * * Fro...
package edu.cmu.cs211.chess.tests.internal; import org.junit.Test; import edu.cmu.cs211.chess.board.ArrayBoard; import static org.junit.Assert.*; /** * This class tests the ArrayBoard provided to you. * * You do not need to edit this file. It is provided * in case you want to write your own board and use * s...
package edu.cmu.cs211.chess.tests.internal; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import edu.cmu.cs211.chess.board.Board; import edu.cmu.cs211.chess.board.Move; import static org.junit.Assert.*; /** * This class aids in testing the Board interface. * ...
package edu.cmu.cs211.chess.tests.internal; import static org.junit.Assert.assertEquals; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import edu.cmu.cs211.chess.board.Board; import edu.cmu.cs211.chess.board.Move; /** * This class aids in testing the Board inter...
package edu.cmu.cs211.chess.tests.internal; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import edu.cmu.cs211.chess.board.Board; import edu.cmu.cs211.chess.board.Move; import edu...
package edu.cmu.cs211.chess.tests.internal; import edu.cmu.cs211.chess.board.ArrayBoard; import edu.cmu.cs211.chess.board.ArrayMove; import edu.cmu.cs211.chess.board.Board; import edu.cmu.cs211.chess.evaluation.NoEvaluator; import edu.cmu.cs211.chess.search.DFS; import edu.cmu.cs211.chess.search.Searcher; public clas...
package edu.cmu.cs211.chess.gui.online; //package com.chessclub.easychess; import java.awt.Color; //This is the class for containing various global variables and settings public final class Config { public static boolean boolDebug = false; public static boolean boolGuest = false;// true; public static final St...
package edu.cmu.cs211.chess.gui.online; //package com.chessclub.easychess; import java.awt.Checkbox; import java.awt.CheckboxGroup; import java.awt.Dimension; import java.awt.Event; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Graphics; import java.awt.Label; import java.awt.event.ActionEvent; im...
package edu.cmu.cs211.chess.gui.online; //package com.chessclub.easychess; /* 2/23/98 - Modified to retain native-size versions. */ import java.awt.Color; import java.awt.Graphics; public final class Painter { // size at which the polygons where designed private final static int native_size = 75; // pawn priva...
/** * Manages pieces captured by the player */ package edu.cmu.cs211.chess.gui.online; import java.awt.Canvas; import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.Graphics; import java.awt.LayoutManager; import javax.swing.JLabel; import javax.swing.JPanel; /** * @auth...
package edu.cmu.cs211.chess.gui.online; //package com.chessclub.easychess; import java.awt.BasicStroke; import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Event; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Point; import java.awt.St...
package edu.cmu.cs211.chess.gui.online; //package com.chessclub.easychess; import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.Insets; import java.awt.LayoutManager; public final class GamePanelLayout implements LayoutManager { private int m_width = 0, m_height = 0; pri...
package edu.cmu.cs211.chess.gui.online; //package com.chessclub.easychess; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.LinkedList; import java.util.Observable; import java.ut...
package edu.cmu.cs211.chess.gui.online; //package com.chessclub.easychess; import java.awt.CheckboxMenuItem; import java.awt.Event; import java.awt.Menu; import java.awt.MenuBar; import java.awt.MenuItem; import javax.swing.JFrame; import edu.cmu.cs211.chess.server.Hub; public class EasyMenuFrame extends JFrame { ...
package edu.cmu.cs211.chess.gui.online; //package com.chessclub.easychess; import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Timer; public final class C...
package edu.cmu.cs211.chess.search; public interface Timer { /** * Starts the timer and allocates the appropriate amount of time. * You are free to modify this interface as it is not tested by * frontdesk. * * @param myTime amount of time left on your game clock. * @param opTime amount of time left on yo...
package edu.cmu.cs211.chess.search; /** * This timer never times up. */ public class NoTimer implements Timer { public void notOkToTimeup() { //nothing } public void okToTimeup() { //nothing } public void start(int myTime, int opTime) { //nothing } public boolean timeup() { return false; }...
package edu.cmu.cs211.chess.search; import java.util.Observer; import edu.cmu.cs211.chess.board.Board; import edu.cmu.cs211.chess.board.Move; import edu.cmu.cs211.chess.evaluation.Evaluator; public interface Searcher<M extends Move<M>, B extends Board<M, B>> { /** * Searches the game tree and selects the best mov...
package edu.cmu.cs211.chess.search; import java.util.Observable; import java.util.Observer; import edu.cmu.cs211.chess.board.Board; import edu.cmu.cs211.chess.board.Move; import edu.cmu.cs211.chess.evaluation.Evaluator; public abstract class AbstractSearcher<M extends Move<M>, B extends Board<M, B>> implements Sea...
package edu.cmu.cs211.chess.search; public class SimpleTimer implements Timer { //private int initialTime; private int increment; private long startTime; private int allocated; private boolean noTimeup = false; public SimpleTimer(int initialTime, int increment) { //this.initialTime = initialTime; this...
package edu.cmu.cs211.chess.search; import java.util.List; import edu.cmu.cs211.chess.board.Board; import edu.cmu.cs211.chess.board.Move; /** * An extremely basic Searcher that is used soley to count the nodes * visited in PerftTests. You may want to look at this class as a * template for starting NegaMax. */ p...
package edu.cmu.cs211.chess.server; //package com.chessclub.easychess; // a level 2 datagram import java.util.ArrayList; import java.util.List; // import java.io.*; public final class L2Item { // the fields of a level2 datagram private List<String> items; // construct a new L2Item public L2Item() { items = n...
package edu.cmu.cs211.chess.server; //package com.chessclub.easychess; // constants for level 2 datagrams public final class L2Codes { public static final int WHO_AM_I = 0; public static final int PLAYER_ARRIVED = 1; public static final int PLAYER_LEFT = 2; public static final int BULLET = 3; public static fi...
package edu.cmu.cs211.chess.server; //package com.chessclub.easychess; // input stream to read ICC level 1 and level 2 import java.io.FilterInputStream; import java.io.IOException; import java.io.InputStream; import java.io.StringBufferInputStream; import java.util.Timer; import java.util.TimerTask; @SuppressWarnin...
package edu.cmu.cs211.chess.server; //package com.chessclub.easychess; // a thread to read input from icc import java.io.DataInputStream; import java.io.IOException; import java.io.PrintStream; import java.net.Socket; //import java.util.*; public final class Iconn extends Thread { private Encryptor send_encryptor...
package edu.cmu.cs211.chess.server; //package com.chessclub.easychess; //timestamp DAT import java.util.Random; public final class DAT { // public final String copyright="Copyright (C) 1996 Aaron Wohl"; public int x[]; // random number generator private static Random generator = null; // constructor to init fi...
package edu.cmu.cs211.chess.server; //package com.chessclub.easychess; // a level 1 item from ICC import java.util.StringTokenizer; public final class L1Item { // public final String copyright="Copyright (C) 1996 Aaron Wohl"; // it's command number private int cmdNum; // who did the command private String w...
package edu.cmu.cs211.chess.server; import java.io.InputStream; import java.io.PrintStream; final class Timestamp { // returns the send and receive encryptors on successful // timestamp authentication // returns null if an error occurs public static Encryptor[] authenticate(InputStream in, PrintStream out, H...
package edu.cmu.cs211.chess.server; public final class Encryptor { public void encrypt_string(byte[] s, int len) { if (!Hub.boolTimestampPossible) return; // do nothing } @SuppressWarnings("deprecation") public byte[] applyTimestamp(String acmd) { // if (!Hub.boolTimestampPossible) { byte[] blah ...
package edu.cmu.cs211.chess.server; //package com.chessclub.easychess; import java.awt.Dimension; import java.awt.Frame; import java.awt.Toolkit; import javax.swing.BoxLayout; import javax.swing.JPanel; import javax.swing.JSplitPane; import edu.cmu.cs211.chess.gui.online.Config; import edu.cmu.cs211.chess.gui.online...
package edu.cmu.cs211.chess.util; /** * @author Owen Durni (opd@andrew.cmu.edu) * * A class which implements Creatable should define * a public static member variable called FACTORY and * should initialize it as an object of said class. * * In this way, anyone can create objects of the * specified c...
package edu.cmu.cs211.chess.util; import java.util.Iterator; /** * @author Owen Durni (opd@andrew.cmu.edu) * * An Iterator that is Iterable over itself. * (For use in foreach loops). */ public interface Iteratorable<E> extends Iterator<E>, Iterable<E> { //nothing }
package edu.cmu.cs211.chess.util; /** * @author Owen Durni (opd@andrew.cmu.edu) * * A functor that serves as a predicate for some type. */ public interface Predicate<T> { public boolean check (T t); }
package edu.cmu.cs211.chess.util; import java.util.Iterator; /** * @author Owen Durni (opd@andrew.cmu.edu) * * Wraps an Iterator so that it is Iterable over itself. */ public class IterableDecorator<E> implements Iteratorable<E> { Iterator<E> iter; public IterableDecorator(Iterator<E> iter...
import java.util.*; import java.io.*; public class Card implements Comparable<Card>, Serializable{ public enum Rank{DEUCE, THREE, FOUT, FIVE, SIX, SEVEN, EIGHT, NINE, TEM, JACK, QUEEN, KING, ACE}; public enum Suit{CLUBS, DIAMONDS, HEARTS, SPADES}; private final Rank rank; private final Sui...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package holamundo; /** * * @author Anamar Garcia */ public class HolaMundo { /** * @param args the comman...
package org.usfirst.frc.team4716.robot; import edu.wpi.first.wpilibj.Encoder; import edu.wpi.first.wpilibj.Gyro; import edu.wpi.first.wpilibj.Relay; import edu.wpi.first.wpilibj.Solenoid; import edu.wpi.first.wpilibj.SpeedController; /** * The RobotMap is a mapping from the ports sensors and actuators are wired int...
package org.usfirst.frc.team4716.robot.commands; import org.usfirst.frc.team4716.robot.Robot; import edu.wpi.first.wpilibj.command.Command; /** * */ public class BasketMoveForward extends Command { public BasketMoveForward() { // Use requires() here to declare subsystem dependencies // eg. req...
package org.usfirst.frc.team4716.robot.commands; import org.usfirst.frc.team4716.robot.Robot; import edu.wpi.first.wpilibj.command.Command; /** * */ public class DriveWithJoystick extends Command { public DriveWithJoystick() { // Use requires() here to declare subsystem dependencies // eg. req...
package org.usfirst.frc.team4716.robot.commands; import org.usfirst.frc.team4716.robot.Robot; import edu.wpi.first.wpilibj.command.Command; /** * */ public class ElevatorUp extends Command { public ElevatorUp() { // Use requires() here to declare subsystem dependencies // eg. requires(chassis)...
package org.usfirst.frc.team4716.robot.commands; import edu.wpi.first.wpilibj.command.Command; import org.usfirst.frc.team4716.robot.Robot; /** * */ public class ExampleCommand extends Command { public ExampleCommand() { // Use requires() here to declare subsystem dependencies requires(Robot....
package org.usfirst.frc.team4716.robot.commands; import org.usfirst.frc.team4716.robot.Robot; import edu.wpi.first.wpilibj.command.Command; /** * */ public class BasketMoveReverse extends Command { public BasketMoveReverse() { // Use requires() here to declare subsystem dependencies // eg. req...
package org.usfirst.frc.team4716.robot.commands; import org.usfirst.frc.team4716.robot.Robot; import edu.wpi.first.wpilibj.command.Command; /** * */ public class StopElevator extends Command { public StopElevator() { // Use requires() here to declare subsystem dependencies // eg. requires(chas...
package org.usfirst.frc.team4716.robot.commands; import org.usfirst.frc.team4716.robot.Robot; import edu.wpi.first.wpilibj.command.Command; /** * */ public class MoveMotor extends Command { public MoveMotor() { // Use requires() here to declare subsystem dependencies // eg. requires(chassis); ...
package org.usfirst.frc.team4716.robot.commands; import org.usfirst.frc.team4716.robot.Robot; import edu.wpi.first.wpilibj.command.Command; /** * */ public class BasketValveOff extends Command { public BasketValveOff() { // Use requires() here to declare subsystem dependencies // eg. requires(...
package org.usfirst.frc.team4716.robot.commands; import org.usfirst.frc.team4716.robot.Robot; import edu.wpi.first.wpilibj.command.Command; /** * */ public class ElevatorDown extends Command { public ElevatorDown() { // Use requires() here to declare subsystem dependencies // eg. requires(chas...
package org.usfirst.frc.team4716.robot; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.buttons.Button; import edu.wpi.first.wpilibj.buttons.JoystickButton; import org.usfirst.frc.team4716.robot.commands.BasketMoveForward; import org.usfirst.frc.team4716.robot.commands.BasketMoveReverse; import or...
package org.usfirst.frc.team4716.robot.subsystems; import edu.wpi.first.wpilibj.command.Subsystem; /** * */ public class ExampleSubsystem extends Subsystem { // Put methods for controlling this subsystem // here. Call these from Commands. public void initDefaultCommand() { // Set the defa...
package org.usfirst.frc.team4716.robot.subsystems; import org.usfirst.frc.team4716.robot.RobotMap; import org.usfirst.frc.team4716.robot.commands.StopElevator; import edu.wpi.first.wpilibj.CounterBase.EncodingType; import edu.wpi.first.wpilibj.Encoder; import edu.wpi.first.wpilibj.SpeedController; import edu.wpi.firs...
package org.usfirst.frc.team4716.robot.subsystems; import edu.wpi.first.wpilibj.DoubleSolenoid; import edu.wpi.first.wpilibj.command.Subsystem; /** * */ public class Pneumatics extends Subsystem { // Put methods for controlling this subsystem // here. Call these from Commands. private DoubleSolenoid v...
package org.usfirst.frc.team4716.robot.subsystems; import org.usfirst.frc.team4716.robot.RobotMap; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.SpeedController; import edu.wpi.first.wpilibj.Victor; import edu.wpi.first.wpilibj.command.Subsystem; /** * */ public class DriveTrain extends Subsy...
package org.usfirst.frc.team4716.robot; import edu.wpi.first.wpilibj.IterativeRobot; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.command.Scheduler; import edu.wpi.first.wpilibj.livewindow.LiveWindow; import org.usfirst.frc.team4716.robot.commands.ExampleCommand; import org.usfirst.frc....
/** AMENDMENTS: * DATE NAME VERSION DESCRIPTION * -------- ----- ------- ----------- * 20/03/2013 Michael 1.0.0 1.DBConnectionManager **/ package com.map.manager; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.PrintWrite...
package com.map.manager; import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import com.map.util.Constants; public class MD5Helper { private static String convertToHex(byte[] data) { StringBuffer buf = new StringBuffer(); f...
/** AMENDMENTS: * DATE NAME VERSION DESCRIPTION * -------- ----- ------- ----------- * 20/03/2013 Michael 1.0.0 1.SystemLogManager **/ package com.map.manager; import java.io.FileWriter; import java.io.PrintWriter; import java.text.DateFormat; import java.util.Calendar; ...
/** AMENDMENTS: * DATE NAME VERSION DESCRIPTION * -------- ----- ------- ----------- * 20/03/2013 Michael 1.0.0 1.ConfigManager **/ package com.map.manager; import java.io.InputStream; import java.util.Hashtable; import java.util.Properties; /** * This class is a Sin...
/** AMENDMENTS: * DATE NAME VERSION DESCRIPTION * -------- ----- ------- ----------- * 20/03/2013 Michael 1.0.0 1.LogManager **/ package com.map.util; import java.io.FileWriter; import java.io.PrintWriter; import java.text.DateFormat; import java.text.SimpleDateFormat; ...
/** AMENDMENTS: * DATE NAME VERSION DESCRIPTION * -------- ----- ------- ----------- * 20/03/2013 Michael 1.0.0 1.Constants **/ package com.map.util; public final class Constants { public static final String MER_NAME = "MBB_MAP"; public static final String SCHE...
/* AMENDMENTS: DATE NAME VERSION DESCRIPTION -------- ----- ------- ----------- 30/10/2012 MKANG 1.0.0 1.Create New. */ package com.map.home; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQ...
/** Program name : LoadData.java **/ package com.map.home; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQ...
package com.map.app; import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.FocusTraversalPolicy; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.awt.event.KeyAd...
package com.map.app; import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; impor...
package com.map.domain; import java.util.Date; import com.map.util.StringUtil; public class MapData { String applicationId; String productId; String screenId; String contentText; String createdBy; Date createdDate; String updatedBy; Date updatedDate; public MapData(String applicatio...
package com.map.domain; public class AsItem { private String name; private String value; private String key; private int index = Integer.MAX_VALUE; public AsItem(String pair) { this.name = pair; this.value = pair; } public AsItem(String name, String value) { this.name = name; this.va...