/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rmr662.frc2012.physical;

import edu.wpi.first.wpilibj.Solenoid;

/**
 * Represents a a system of two solenoids that should always have different
 * values.
 * @author RMR662
 */
public class RMRSolenoidSystem {
    
    private Solenoid correspondent;
    private Solenoid inverted;
    
    public RMRSolenoidSystem(Solenoid correspondent, Solenoid inverted) {
        this.correspondent = correspondent;
        this.inverted = inverted;
    }
    
    public void set(boolean on) {
        correspondent.set(on);
        inverted.set(!on);
    }
    
}

@@ -345,338 +345,891 @@
     
-private Solenoid correspondent;%0D%0A    private Solenoid inverted;%0D%0A    %0D%0A    public RMRSolenoidSystem(Solenoid correspondent, Solenoid inverted) %7B%0D%0A        this.correspondent = correspondent;%0D%0A        this.inverted = inverted;%0D%0A    %7D%0D%0A    %0D%0A    public void set(boolean on) %7B%0D%0A        correspondent.set(on);%0D%0A        inverted.set(!on
+/**%0D%0A     * The non-inverted Solenoid%0D%0A     */%0D%0A    private Solenoid correspondent;%0D%0A    /**%0D%0A     * The inverted Solenoid%0D%0A     */%0D%0A    private Solenoid inverted;%0D%0A    %0D%0A    /**%0D%0A     * Creates a new RMRSolenoidSystem with two pre-initialized solenoids.%0D%0A     * @param correspondent the non-inverted solenoid%0D%0A     * @param inverted the inverted solenoid%0D%0A     */%0D%0A    public RMRSolenoidSystem(Solenoid correspondent, Solenoid inverted) %7B%0D%0A        this.correspondent = correspondent;%0D%0A        this.inverted = inverted;%0D%0A    %7D%0D%0A    %0D%0A    /**%0D%0A     * Sets the value of the solenoid system.%0D%0A     * @param on the new value of the solenoid system%0D%0A     */%0D%0A    public void set(boolean on) %7B%0D%0A        correspondent.set(on);%0D%0A        inverted.set(!on);%0D%0A    %7D%0D%0A    %0D%0A    /**%0D%0A     * Toggles the value of the solenoid system%0D%0A     */%0D%0A    public void toggle() %7B%0D%0A        set(inverted.get()
 );%0D%0A

Add toggle and javadoc RMRSolenoidSystem