001package com.ctre.phoenix;
002
003/**
004 * Configurables for any custom param configs
005 */
006public abstract class CustomParamConfiguration{
007        /**
008         * Custom Param 0
009         */
010        public int customParam0;
011        /**
012         * Custom Param 1
013         */
014        public int customParam1;
015        /**
016         * Enable optimizations for ConfigAll (defaults true)
017         */
018        public boolean enableOptimizations;
019        
020        public CustomParamConfiguration() {
021                customParam0 = 0;
022                customParam1 = 0;
023                enableOptimizations = true;
024        }
025
026    /**
027     * @return string representation of currently selected configs
028     */
029        public String toString() {
030                return toString("");
031        }
032
033    /**
034     * @param prependString String to prepend to all the configs
035     * @return string representation fo currently selected configs
036     */
037    public String toString(String prependString) {
038        String retstr = prependString + ".customParam0 = " + String.valueOf(customParam0) + ";\n";
039        retstr += prependString + ".customParam1 = " + String.valueOf(customParam1) + ";\n";
040
041        return retstr;
042    }
043
044}