org.mentaaffinity
Class Chip

java.lang.Object
  extended by org.mentaaffinity.Chip

public class Chip
extends Object

An object representing a physical processor.

Author:
Sergio Oliveir Jr.

Constructor Summary
Chip(int chipId, ArrayList<Core> cores)
           
 
Method Summary
 boolean equals(Object obj)
           
 Core getCore(int coreId)
           
 List<Core> getCores()
           
 Core getFreeCore()
           
 Core getFullyFreeCore()
           
 int getId()
           
 int getNumberOfFreeCores()
           
 boolean hasFreeCore()
           
 boolean hasFullyFreeCore()
           
 int hashCode()
           
 void printSituation()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Chip

public Chip(int chipId,
            ArrayList<Core> cores)
Method Detail

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.