CPU

Purpose: Represents a real CPU within the zServer.

Properties:

String cpuID

The unique ID code for the CPU.

String status;

The status of the particular CPU. ”MASTER”, “ALTERNATE”, or “DEDICATED”.

String owner;

The guest that this CPU is dedicated to. This will only be set if the CPU is indeed dedicated to a particular guest. Otherwise it will be the empty string.

Public Methods:

CPU(String myID, String Status)

Creates a new CPU object with the given ID.

void dedicate(String guest)

Dedicates this CPU to the guest “guest”.

void undedicate()

Undedicates this CPU from whoever owns it. If it is not dedicated, this function does nothing.

String getCPUID()

Returns the CPUID for this CPU.

String getStatus()

Returns the Status of this CPU.

Void setStatus(String status)

Sets the Status of this CPU.

Private Methods:

Notes:

We will use the Q PROC command to get all this info.

2004-02-29T11:12:51