org.mentaaffinity
Class Processor

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

public class Processor
extends Object

An object representing a logical processor, the smallest processing unit capable of running only one thread at a time. Do not confuse this class with a physical processor.

Author:
Sergio Oliveira Jr.

Constructor Summary
Processor(int procId, int chipId, int coreId, boolean isExcluded)
           
 
Method Summary
 boolean equals(Object o)
           
 int getChipId()
           
 int getCoreId()
           
 int getId()
           
 int getMask()
           
 String getStatusString()
           
 Thread getThread()
           
 int hashCode()
           
 boolean isBound()
           
 boolean isExcluded()
           
 boolean isFree()
           
 boolean sameChip(Processor other)
           
 boolean sameChipDifferentCore(Processor other)
           
 boolean sameCore(Processor other)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Processor

public Processor(int procId,
                 int chipId,
                 int coreId,
                 boolean isExcluded)
Method Detail

getStatusString

public String getStatusString()

getId

public int getId()

getChipId

public int getChipId()

getCoreId

public int getCoreId()

isExcluded

public boolean isExcluded()

isFree

public boolean isFree()

isBound

public boolean isBound()

getThread

public Thread getThread()

sameChip

public boolean sameChip(Processor other)

sameCore

public boolean sameCore(Processor other)

sameChipDifferentCore

public boolean sameChipDifferentCore(Processor other)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

getMask

public int getMask()


Copyright © 2012. All Rights Reserved.