/** Called when the unit is created. Initialises the unit's properties and parameters. */ public void init() { super.init(); // Initialise node properties setDefaultInputNodes(1); setMinimumInputNodes(1); setMaximumInputNodes(1); setDefaultOutputNodes(1); setMinimumOutputNodes(0); setMaximumOutputNodes(Integer.MAX_VALUE); // Initialise parameter update policy and output policy setParameterUpdatePolicy(PROCESS_UPDATE); setOutputPolicy(COPY_OUTPUT); // Initialise pop-up description and help file location setPopUpDescription("Makes a tool into a File Reader"); setHelpFileLocation("MakeFileReader.html"); // Define initial value and type of parameters defineParameter("extensions", "", USER_ACCESSIBLE); // Initialise GUI builder interface String guilines = ""; guilines += "Default Extensions $title extensions TextField\n"; setGUIBuilderV2Info(guilines); }
/** Called when the unit is created. Initialises the unit's properties and parameters. */ public void init() { super.init(); // Initialise node properties setDefaultInputNodes(0); setMinimumInputNodes(0); setMaximumInputNodes(0); setDefaultOutputNodes(1); setMinimumOutputNodes(0); setMaximumOutputNodes(Integer.MAX_VALUE); // Initialise parameter update policy setParameterUpdatePolicy(Task.IMMEDIATE_UPDATE); // Initialise pop-up description and help file location setPopUpDescription("Generates uniformly distributed noise between and upper and lower limit"); setHelpFileLocation("GenRandNoise.html"); // Define initial value and type of parameters defineParameter("lowerBound", "0.0", USER_ACCESSIBLE); defineParameter("upperBound", "1.0", USER_ACCESSIBLE); defineParameter("numberOfPoints", "16384", USER_ACCESSIBLE); defineParameter("samplingRate", "16384.0", USER_ACCESSIBLE); // Initialise GUI builder interface String guilines = ""; guilines += "lower bound $title lowerBound TextField 0.0\n"; guilines += "upper bound $title upperBound TextField 1.0\n"; guilines += "number of data points $title numberOfPoints TextField 16384\n"; guilines += "sampling rate $title samplingRate TextField 16384.0\n"; setGUIBuilderV2Info(guilines); }
/** Initialses information specific to Brightness. */ public void init() { super.init(); setDefaultInputNodes(1); setMinimumInputNodes(1); setMaximumInputNodes(1); setDefaultOutputNodes(1); setMinimumOutputNodes(1); setMaximumOutputNodes(Integer.MAX_VALUE); // setUseGUIBuilder(true); /* addvalue = 0; myWindow = new IntScrollerWindow(this, "Enter Brigtness level (-255 to +255)"); myWindow.setParameterName(parameterName); myWindow.setValues(min, max, addvalue); myWindow.updateWidgets(); */ String guilines = ""; guilines += "Enter brightness level (" + min + " to " + max + ") $title " + parameterName + " IntScroller " + min + " " + max + " 0\n"; setGUIBuilderV2Info(guilines); }
/** Initialses information specific to SetAcqTime. */ public void init() { super.init(); // setUseGUIBuilder(true); // // setRequireDoubleInputs(false); // setCanProcessDoubleArrays(false); // // setResizableInputs(false); // setResizableOutputs(true); setDefaultInputNodes(1); setMinimumInputNodes(1); setMaximumInputNodes(Integer.MAX_VALUE); setDefaultOutputNodes(1); setMinimumOutputNodes(1); setMaximumOutputNodes(Integer.MAX_VALUE); String guilines = ""; guilines += "Give new acquisition time $title newTime Scroller 0 100000 0\n"; setGUIBuilderV2Info(guilines); }