com.perfdynamics.pdq
Class PDQ

java.lang.Object
  extended by com.perfdynamics.pdq.PDQ

public class PDQ
extends java.lang.Object

Author:
plh

Field Summary
 Job[] job
           
 int jobNo
           
 Node[] node
           
 int nodeNo
           
 int noNodes
           
 int noStreams
           
static java.lang.String VERSION
           
 
Constructor Summary
PDQ()
           
 
Method Summary
 void allocate_jobs(int no_streams)
           
 void allocate_nodes(int no_nodes, int no_streams)
           
 int CreateClosed(java.lang.String name, int should_be_class, double population, double think)
          defines the characteristics of a workload in a closed - circuit queueing model.
 int CreateNode(java.lang.String name, int device, int sched)
          Defines a single queueing - center in either a closed or open circuit queueing model.
 int CreateOpen(java.lang.String name, double lambda)
          Defines the characteristics of a workload in an open - circuit queueing model.
 java.lang.String GetComment()
           
 boolean GetDebug()
          Expose DEBUG state.
 int getjob_index(java.lang.String wname)
           
 java.lang.String getjob_name(int jobNo)
           
 double getjob_population(int jobNo)
           
 double GetLoadOpt(int should_be_class, java.lang.String wname)
           
 java.lang.String getModelName()
          Return name of model.
 int getnode_index(java.lang.String name)
           
 double GetQueueLength(java.lang.String device, java.lang.String work, int should_be_class)
          Returns the queue length at the designated queueing node due to the specified workload.
 double GetResidenceTime(java.lang.String device, java.lang.String work, int should_be_class)
           
 double GetResponse(int should_be_class, java.lang.String wname)
          Returns the system response time for the specified workload.
 double GetThruput(int should_be_class, java.lang.String wname)
          Returns the system throughput for the specified workload.
 double GetUtilization(java.lang.String device, java.lang.String work, int should_be_class)
          Returns the utilization of the designated queueing node by the specified workload.
 void Init(java.lang.String name)
          initializes all internal PDQ variables.Must be called prior to any other PDQ function.
static void main(java.lang.String[] args)
           
 void Report()
          generates a formatted report containing system, and node level performance measures.
 void SetComment(java.lang.String s)
           
 void SetDebug(boolean flag)
          enables diagnostic printout of PDQ internal variables.
 void SetDemand(java.lang.String nodename, java.lang.String workname, double time)
          defines the service demand of a specific workload at a specified node.
 void SetTUnit(java.lang.String unitName)
           
 void SetVisits(java.lang.String nodename, java.lang.String workname, double visits, double service)
          defines the service demand in terms of the service time and visit count.
 void SetWUnit(java.lang.String unitName)
           
 void Solve(int method)
          The solution method must be passed as an argument.
 int strtotype(java.lang.String str)
           
 java.lang.String typetostr(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
See Also:
Constant Field Values

job

public Job[] job

noStreams

public int noStreams

jobNo

public int jobNo

node

public Node[] node

noNodes

public int noNodes

nodeNo

public int nodeNo
Constructor Detail

PDQ

public PDQ()
Method Detail

getModelName

public java.lang.String getModelName()
Return name of model.


Init

public void Init(java.lang.String name)
initializes all internal PDQ variables.Must be called prior to any other PDQ function.


Solve

public void Solve(int method)
The solution method must be passed as an argument.


Report

public void Report()
generates a formatted report containing system, and node level performance measures.


CreateClosed

public int CreateClosed(java.lang.String name,
                        int should_be_class,
                        double population,
                        double think)
defines the characteristics of a workload in a closed - circuit queueing model.


CreateOpen

public int CreateOpen(java.lang.String name,
                      double lambda)
Defines the characteristics of a workload in an open - circuit queueing model.


CreateNode

public int CreateNode(java.lang.String name,
                      int device,
                      int sched)
Defines a single queueing - center in either a closed or open circuit queueing model.


GetResponse

public double GetResponse(int should_be_class,
                          java.lang.String wname)
Returns the system response time for the specified workload.


GetThruput

public double GetThruput(int should_be_class,
                         java.lang.String wname)
Returns the system throughput for the specified workload.


GetUtilization

public double GetUtilization(java.lang.String device,
                             java.lang.String work,
                             int should_be_class)
Returns the utilization of the designated queueing node by the specified workload.


GetQueueLength

public double GetQueueLength(java.lang.String device,
                             java.lang.String work,
                             int should_be_class)
Returns the queue length at the designated queueing node due to the specified workload.


SetDebug

public void SetDebug(boolean flag)
enables diagnostic printout of PDQ internal variables.


GetDebug

public boolean GetDebug()
Expose DEBUG state.


SetDemand

public void SetDemand(java.lang.String nodename,
                      java.lang.String workname,
                      double time)
defines the service demand of a specific workload at a specified node.


SetVisits

public void SetVisits(java.lang.String nodename,
                      java.lang.String workname,
                      double visits,
                      double service)
defines the service demand in terms of the service time and visit count.


SetWUnit

public void SetWUnit(java.lang.String unitName)

SetTUnit

public void SetTUnit(java.lang.String unitName)

typetostr

public java.lang.String typetostr(int type)

strtotype

public int strtotype(java.lang.String str)

GetLoadOpt

public double GetLoadOpt(int should_be_class,
                         java.lang.String wname)

GetResidenceTime

public double GetResidenceTime(java.lang.String device,
                               java.lang.String work,
                               int should_be_class)

SetComment

public void SetComment(java.lang.String s)

GetComment

public java.lang.String GetComment()

allocate_nodes

public void allocate_nodes(int no_nodes,
                           int no_streams)

allocate_jobs

public void allocate_jobs(int no_streams)

getjob_index

public int getjob_index(java.lang.String wname)

getnode_index

public int getnode_index(java.lang.String name)

getjob_name

public java.lang.String getjob_name(int jobNo)

getjob_population

public double getjob_population(int jobNo)

main

public static void main(java.lang.String[] args)