public interface Computer
Write a description of interface Computer here.
Method Summary | |
---|---|
void |
addComponent(Component component)
Adds new component to the computer. |
int |
getRequiredPower()
Gets the total required power of all components |
Method Detail |
---|
void addComponent(Component component) throws java.lang.IllegalArgumentException
component
- component to be added to the computer
java.lang.IllegalArgumentException
- if the total power consuption of all included
components exceeds 95% of the power source capacity.int getRequiredPower()