diff options
| author | Jesse Morgan <jesse@jesterpm.net> | 2012-10-16 08:35:08 -0700 | 
|---|---|---|
| committer | Jesse Morgan <jesse@jesterpm.net> | 2012-10-16 08:35:08 -0700 | 
| commit | 245099702c33c8792c9d99ab25e594e41935db33 (patch) | |
| tree | e7ec7b4dd04c98f5ceb01839b8fc73724ac9cc77 /src/net/tuschhcm/routercontrol/router | |
| parent | 446a26f85474596be21b88dea42778ab25022d67 (diff) | |
Changed tabs to spaces. Removed MyClass.java.
Diffstat (limited to 'src/net/tuschhcm/routercontrol/router')
| -rw-r--r-- | src/net/tuschhcm/routercontrol/router/Router.java | 44 | ||||
| -rw-r--r-- | src/net/tuschhcm/routercontrol/router/ShinyBow5544Router.java | 50 | 
2 files changed, 47 insertions, 47 deletions
| diff --git a/src/net/tuschhcm/routercontrol/router/Router.java b/src/net/tuschhcm/routercontrol/router/Router.java index d6fe2dd..7291bfd 100644 --- a/src/net/tuschhcm/routercontrol/router/Router.java +++ b/src/net/tuschhcm/routercontrol/router/Router.java @@ -4,26 +4,26 @@ package net.tuschhcm.routercontrol.router;   * Interface specification for a router
   */
  public interface Router {
 -	/**
 -	 * Send the given input to the given output.
 -	 * 
 -	 * @param output
 -	 * @param input
 -	 * 
 -	 * @throws IllegalArgumentException if input or output are out of range.
 -	 */
 -	public void switchInput(int output, int input) throws IllegalArgumentException;
 -	
 -	/**
 -	 * Power on or power off the router
 -	 * 
 -	 * @param True to turn on the router 
 -	 */
 -	public void setPower(boolean on);
 -	
 -	/**
 -	 * Enable or disable physical controls
 -	 * @param enabled true to disable the controls.
 -	 */
 -	public void setLockControls(boolean enabled);
 +    /**
 +     * Send the given input to the given output.
 +     * 
 +     * @param output
 +     * @param input
 +     * 
 +     * @throws IllegalArgumentException if input or output are out of range.
 +     */
 +    public void switchInput(int output, int input) throws IllegalArgumentException;
 +    
 +    /**
 +     * Power on or power off the router
 +     * 
 +     * @param True to turn on the router 
 +     */
 +    public void setPower(boolean on);
 +    
 +    /**
 +     * Enable or disable physical controls
 +     * @param enabled true to disable the controls.
 +     */
 +    public void setLockControls(boolean enabled);
  }
 diff --git a/src/net/tuschhcm/routercontrol/router/ShinyBow5544Router.java b/src/net/tuschhcm/routercontrol/router/ShinyBow5544Router.java index ee60bfc..7cca3f3 100644 --- a/src/net/tuschhcm/routercontrol/router/ShinyBow5544Router.java +++ b/src/net/tuschhcm/routercontrol/router/ShinyBow5544Router.java @@ -6,32 +6,32 @@ package net.tuschhcm.routercontrol.router;   */
  public class ShinyBow5544Router implements Router {
 -	/**
 -	 * Create a new ShinyBow router using the given comm port.
 -	 * 
 -	 * @param portName Com port name
 -	 */
 -	public ShinyBow5544Router(final String portName) {
 -		
 -	}
 -	
 -	@Override
 -	public void switchInput(int output, int input)
 -			throws IllegalArgumentException {
 -		// TODO Auto-generated method stub
 -		
 -	}
 +    /**
 +     * Create a new ShinyBow router using the given comm port.
 +     * 
 +     * @param portName Com port name
 +     */
 +    public ShinyBow5544Router(final String portName) {
 +        
 +    }
 +    
 +    @Override
 +    public void switchInput(int output, int input)
 +            throws IllegalArgumentException {
 +        // TODO Auto-generated method stub
 +        
 +    }
 -	@Override
 -	public void setPower(boolean on) {
 -		// TODO Auto-generated method stub
 -		
 -	}
 +    @Override
 +    public void setPower(boolean on) {
 +        // TODO Auto-generated method stub
 +        
 +    }
 -	@Override
 -	public void setLockControls(boolean enabled) {
 -		// TODO Auto-generated method stub
 -		
 -	}
 +    @Override
 +    public void setLockControls(boolean enabled) {
 +        // TODO Auto-generated method stub
 +        
 +    }
  }
 | 
