Question: Debug Space shuttle in Java. Consists of public classes: Component, Computer, Control, Environment, LifeSupportSystem, Main, Parameter, ParameterLimit, Sensor and public enum StatusCode. When I debugged

Debug Space shuttle in Java.

Consists of public classes: Component, Computer, Control, Environment, LifeSupportSystem, Main, Parameter, ParameterLimit, Sensor and public enum StatusCode.

When I debugged the program the following errors displayed:

The method increaseValue(int) is undefined for the type parameter;

at spacestation.lifesupport.Main.changeTemperatures(Main.java: 173);

at spacestation.lifesupport.Main.main(Main.java: 29)

Please see in red color.

public class Component

 Debug Space shuttle in Java. Consists of public classes: Component, Computer,

Control, Environment, LifeSupportSystem, Main, Parameter, ParameterLimit, Sensor and public enum StatusCode. When

I debugged the program the following errors displayed: The method increaseValue(int) is

undefined for the type parameter; at spacestation.lifesupport.Main.changeTemperatures(Main.java: 173); at spacestation.lifesupport.Main.main(Main.java: 29) Please

see in red color. public class Component public class Computer: public class

public class Computer:

Control: public class Environment: public class LifeSupportSystem: public class Main: public class

public class Control:

Parameter: public class ParameterLimit: public class Sensor: public enum StatusCode: ERRORS after

debugging: Quice Arcess matJava Dweightjava "Component ava st ) ComputerJava Controllava 1

L Environment." DLifeSupport. Mainiava Parameter ava " 1 package spacestation.lifesupport; 4 public

public class Environment:

class Component f private final String Name; 8 private final String SettingName;

10 private final double Hinisettine;//The min setting for this comporient (how low

public class LifeSupportSystem:

can you set the throttle 12 private final double MaxSetting;//The max setting

for this component (how high can you set the throttle) 14 private

final Sensor PrimarySensor;//This is the main sensor this component is trying to

public class Main:

solve for 15 16 17 18 19 private final Sensor Secondarysensor;//A secondary

sensor to meesure side effects, if relevantd private final Control IncreaseController; 20

private final Control DecreaseController 21 private double CurrentSetting; 23 24 public final

double SettingprimaryImpact;//How many units the target paremeter changes for each unit of

setting 25 26 27 public final double SettingsecondaryImpact;//low many units the secondary

public class Parameter:

parameter changes (only relevant if 28 29 30 private final int DigitsPrecision

2: 31 /fchange //comportent has side effects) 325 public Component (String name,

public class ParameterLimit:

String settingName, double minisetting, double maxSetting, double settingPrimaryImpact, double settingsecondarylimpact, Control increaseController,

public class Sensor:

34 35 36 37 38 39 40 41 Control decreaseController, Sensor primarySensor,

Sensor secondarySensor) f this.Name name this.SettineName settingName; this MiniSetting miniSetting; this.MaxSetting maxSetting;

43 Smart Insert16 99 Writa ble :11 PM 11/3/2018 t; dx

public enum StatusCode:

image text in transcribed

ERRORS after debugging:

image text in transcribed

Quice Arcess matJava Dweightjava "Component ava st ) ComputerJava Controllava 1 L Environment." DLifeSupport. Mainiava Parameter ava " 1 package spacestation.lifesupport; 4 public class Component f private final String Name; 8 private final String SettingName; 10 private final double Hinisettine;//The min setting for this comporient (how low can you set the throttle 12 private final double MaxSetting;//The max setting for this component (how high can you set the throttle) 14 private final Sensor PrimarySensor;//This is the main sensor this component is trying to solve for 15 16 17 18 19 private final Sensor Secondarysensor;//A secondary sensor to meesure side effects, if relevantd private final Control IncreaseController; 20 private final Control DecreaseController 21 private double CurrentSetting; 23 24 public final double SettingprimaryImpact;//How many units the target paremeter changes for each unit of setting 25 26 27 public final double SettingsecondaryImpact;//low many units the secondary parameter changes (only relevant if 28 29 30 private final int DigitsPrecision 2: 31 /fchange //comportent has side effects) 325 public Component (String name, String settingName, double minisetting, double maxSetting, double settingPrimaryImpact, double settingsecondarylimpact, Control increaseController, 34 35 36 37 38 39 40 41 Control decreaseController, Sensor primarySensor, Sensor secondarySensor) f this.Name name this.SettineName settingName; this MiniSetting miniSetting; this.MaxSetting maxSetting; 43 Smart Insert16 99 Writa ble :11 PM 11/3/2018 t; dx

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!