org.mentaaffinity
Class Chip
java.lang.Object
org.mentaaffinity.Chip
public class Chip
- extends Object
An object representing a physical processor.
- Author:
- Sergio Oliveir Jr.
Chip
public Chip(int chipId,
ArrayList<Core> cores)
getId
public int getId()
getCore
public Core getCore(int coreId)
getCores
public List<Core> getCores()
hasFullyFreeCore
public boolean hasFullyFreeCore()
getFullyFreeCore
public Core getFullyFreeCore()
hasFreeCore
public boolean hasFreeCore()
getFreeCore
public Core getFreeCore()
getNumberOfFreeCores
public int getNumberOfFreeCores()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
printSituation
public void printSituation()
Copyright © 2012. All Rights Reserved.