org.mentaaffinity
Class Core

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

public class Core
extends Object

An object representing a processor core, for multi-core processors.

Author:
Sergio Oliveira Jr.

Constructor Summary
Core(int chipId, int coreId, ArrayList<Processor> processors)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getChipId()
           
 int getCoreId()
           
 Processor getFreeProcessor()
           
 int getNumberOfProcessors()
           
 List<Processor> getProcessors()
           
 boolean hasFreeProcessor()
           
 int hashCode()
           
 boolean isFullyFree()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Core

public Core(int chipId,
            int coreId,
            ArrayList<Processor> processors)
Method Detail

getCoreId

public int getCoreId()

getChipId

public int getChipId()

getProcessors

public List<Processor> getProcessors()

getNumberOfProcessors

public int getNumberOfProcessors()

isFullyFree

public boolean isFullyFree()

hasFreeProcessor

public boolean hasFreeProcessor()

getFreeProcessor

public Processor getFreeProcessor()

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


Copyright © 2012. All Rights Reserved.