//constructor public Robot() { personality = new BayesianNetwork_Personality(); isListening = false; isSeeing = true; String[] tempCategories = { "Defensive", "Aggressive", "IntimidatingOrProtective", "Intimacy", "Friendly", "Interest", "DefensiveOrIntimacy", "Disinterest" }; robotResponseCategories = tempCategories; categorisedResponses = new String[robotResponseCategories.Length][]; loadCategorisedResponses(); uSBUIRT = new USB_UIRT(); robotIOGUI = new RobotIOGUI(); }
// constructor public BayesianNetworkGUI() { InitializeComponent(); personality = new BayesianNetwork_Personality(); RadioButton[] tempRB = { angryRadioButton, happyRadioButton, sadRadioButton, neutralRadioButton, farRadioButton, mediumRadioButton, closeRadioButton }; inputRadioButtons = tempRB; TextBox[] tempTB = { defensiveTextBox, aggressiveTextBox, intimidatingOrProtectiveTextBox, intimacyTextBox, friendlyTextBox, interestTextBox, defensiveOrIntimacyTextBox, disinterestTextBox }; outputTextBoxes = tempTB; Label[] tempL = { defensiveLabel, aggressiveLabel, intimidatingOrProtectiveLabel, intimacyLabel, friendlyLabel, interestLabel, defensiveOrIntimacyLabel, disinterestLabel }; outputLabels = tempL; reset(); }