package org.robockets.robotswitcher;

import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;

/** Used to get and initialize a SmartDashboard field for a robot number
 * 
 * 
 * @author Jake Backer
 * @version 	
v.1.sleepy.1.0.ocean.1450230474.7
 
 *
 *
 *
 *
 */
public class Switcher {
	
	/** Holds the value of the SmartDashboard field*/
	public int currentRobot;
	
	
	/** Initializes the currentRobot field*/
	public Switcher() {
		try{
		currentRobot = getRobot();
		}catch(DoesNotExistException e){
			System.out.println("SmartDashboard field does not exist! Run initRobotNumber()");
		}
	}
	
	/**
	 * Stores the value of the field in SmartDashboard in currentRobot
	 * @return The value of currentRobot
	 * @throws DoesNotExistException Thrown if field on SmartDashboard does not exist
	 */
	public int getRobot() throws DoesNotExistException{
		currentRobot = (int) SmartDashboard.getNumber("RobotNumber");
		return currentRobot;
	}
	
	/** Initializes the field on SmartDashboard TEMPORARY*/
	public void initRobotNumber() {
		SmartDashboard.putNumber("RobotNumber", 0); //TEMP
	}	
	
}

@@ -169,20 +169,16 @@
 ber%0A * %0A
- * %0A
  * @auth
@@ -204,18 +204,16 @@
 version 
-%09%0A
 v.1.slee
@@ -242,22 +242,8 @@
 4.7%0A
- %0A *%0A *%0A *%0A *%0A
  */%0A
@@ -273,16 +273,21 @@
 %0A%09%0A%09/** 
+%0A%09 * 
 Holds th
@@ -317,24 +317,27 @@
 hboard field
+%0A%09 
 */%0A%09public i
@@ -357,24 +357,28 @@
 ot;%0A%09%0A%09%0A%09/**
+%0A%09 *
  Initializes
@@ -400,16 +400,19 @@
 ot field
+%0A%09 
 */%0A%09publ
@@ -940,16 +940,20 @@
 %7D%0A%09%0A%09/**
+%0A%09 *
  Initial
@@ -994,16 +994,19 @@
 EMPORARY
+%0A%09 
 */%0A%09publ

Fix javadoc styling