uk.co.petertribble.solview.explorer
Class ProcessorTree

java.lang.Object
  extended by uk.co.petertribble.solview.explorer.ProcessorTree

public class ProcessorTree
extends java.lang.Object

Maintains a description of the processor topology


Constructor Summary
ProcessorTree(JKstat jkstat)
           
ProcessorTree(JKstat jkstat, java.util.Set<Kstat> kstats)
           
 
Method Summary
 java.util.Set<Kstat> chipInfoStats(long chipid)
          Return all the Kstats corresponding to a given chip.
 java.util.Set<Kstat> chipStats(long chipid)
          Return all the Kstats corresponding to a given chip.
 java.util.Set<Kstat> coreInfoStats(long chipid, long coreid)
          Return the Kstats for a given core, identified by both chipid and coreid.
 java.util.Set<Kstat> coreStats(long chipid, long coreid)
          Return the Kstats for a given core, identified by both chipid and coreid.
 java.util.Set<java.lang.Long> getChips()
          Return the Set of chip ids
 java.util.Set<java.lang.Long> getCores(long l)
          Return the Set of core ids for a given chip.
 boolean isMulticore()
          Returns whether the processors have multiple cores.
 boolean isThreaded()
          Returns whether the processors are theaded.
 int numChips()
          Return the number of chips
 int numCores(long chipid)
          Return the number of cores in a given chip.
 int numThreads(long chipid, long coreid)
          Return the number of threads in a given core, identified by both chipid and coreid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessorTree

public ProcessorTree(JKstat jkstat,
                     java.util.Set<Kstat> kstats)

ProcessorTree

public ProcessorTree(JKstat jkstat)
Method Detail

isThreaded

public boolean isThreaded()
Returns whether the processors are theaded.


isMulticore

public boolean isMulticore()
Returns whether the processors have multiple cores.


numChips

public int numChips()
Return the number of chips


getChips

public java.util.Set<java.lang.Long> getChips()
Return the Set of chip ids


numCores

public int numCores(long chipid)
Return the number of cores in a given chip. If invalid, return zero.


getCores

public java.util.Set<java.lang.Long> getCores(long l)
Return the Set of core ids for a given chip.


numThreads

public int numThreads(long chipid,
                      long coreid)
Return the number of threads in a given core, identified by both chipid and coreid. If invalid, return zero.


chipInfoStats

public java.util.Set<Kstat> chipInfoStats(long chipid)
Return all the Kstats corresponding to a given chip. If invalid, return the empty Set.


chipStats

public java.util.Set<Kstat> chipStats(long chipid)
Return all the Kstats corresponding to a given chip. If invalid, return the empty Set.


coreInfoStats

public java.util.Set<Kstat> coreInfoStats(long chipid,
                                          long coreid)
Return the Kstats for a given core, identified by both chipid and coreid. If invalid, return the empty Set.


coreStats

public java.util.Set<Kstat> coreStats(long chipid,
                                      long coreid)
Return the Kstats for a given core, identified by both chipid and coreid. If invalid, return the empty Set.