atropos.pp
Class PP

java.lang.Object
  |
  +--java.util.Date
        |
        +--atropos.lp.AvnmpTime
              |
              +--atropos.lp.AvnmpDebug
                    |
                    +--atropos.gvt.Gvt
                          |
                          +--atropos.lp.AvnmpLP
                                |
                                +--atropos.pp.PP
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, ConfigInterface, java.io.Serializable, SnmpInterface

public class PP
extends AvnmpLP
implements SnmpInterface

This class implements a physical process for test purposes.

This research is funded by DARPA/ITO Contract Number: F30602-98-C-0230 supported by the Air Force Research Laboratory/IF.

Version:
$Revision: 1.1.1.1 $ $State: Exp $
Author:
Steve Bush
See Also:
Serialized Form

Inner classes inherited from class atropos.lp.AvnmpLP
AvnmpLP.ParmTable, AvnmpLP.parmTime
 
Fields inherited from class atropos.lp.AvnmpLP
context, gvtupdate, islp, lookahead, LpNum, lvt, name, numAnti, numCausalityRb, numPackets, numToleranceRb, outq_size, parmTable, procList, ReRate, start_time, stateq, stepsize, terminal, Tla, tolerance, Tspeedup, Ttrb, Tttask, vminq, vmoutq, VmRate
 
Fields inherited from class atropos.gvt.Gvt
COLLECTMIN, GvtReportInput, GvtUpdateRequest, GvtUpdateResponse, IDLE, lm, REPORTLOCAL, START
 
Fields inherited from class atropos.lp.AvnmpDebug
dlevel, DRIVER_D, GVT_D, html, LP_D, LPSTATE_D, MEASURE_D, NodeName, PACKET_D, PAYLOAD_D, PP_D, PREDM_D, RECQ_D, ROLLBACK_D, SNDQ_D, STATEQ_D, SYSTEM_D, TIME_D, TOLERANCE_D
 
Fields inherited from interface atropos.lp.SnmpInterface
active, AppOid, avnmpMIB, avnmpTable, cpu95Percentile, cpuApp, cpuAppType, cpuAvgHighError, cpuAvgLowError, cpuAvgUtilization, cpuID, cpuPrediction, cpuPredictionAppType, cpuPredictionAvgUtil, cpuPredictionID, cpuPredictionPredictedTime, cpuPredictionTable, cpuPredictionVariance, cpuUtilizationTable, cpuVariance, experimental, loadApp, loadAppPackets, loadAppUptime, loadPredictionID, loadPredictionPort, loadPredictionPredictedLoad, loadPredictionPredictedTime, loadPredictionTable, logicalProcessCausalityRollbacks, logicalProcessELkAhead, logicalProcessErb, logicalProcessETask, logicalProcessGVT, logicalProcessGvtUpdate, logicalProcessID, logicalProcessLookAhead, logicalProcessLVT, logicalProcessNumAnti, logicalProcessNumNoState, logicalProcessNumPkts, logicalProcessPktPred, logicalProcessPredAcc, logicalProcessPropX, logicalProcessPropY, logicalProcessQRSize, logicalProcessQSSize, logicalProcessReal, logicalProcessReRate, logicalProcessSpeedup, logicalProcessSQSize, logicalProcessStateError, logicalProcessStatePred, logicalProcessStepSize, logicalProcessTableIndex, logicalProcessTdiff, logicalProcessTolerance, logicalProcessToleranceRollbacks, logicalProcessUptime, logicalProcessVirtual, logicalProcessVmRate, longRunning, longRunningPackets, longRunningTable, lrAppType, lrCpuActualTime, lrCpuPacketID, lrCpuPredicted95Percentile, predVarMIB, shortRunning, shortRunningPackets, shortRunningTable, srAppType, srCpuActualTime, srCpuPacketID, srCpuPredicted95Percentile
 
Fields inherited from interface atropos.lp.ConfigInterface
Dvm, initTolerance, logdir, lvm, ootLimit, pdir, rmlog, rmplots, rmsnmp, runMinutes, snmpdir, VirtualMessageRatio
 
Constructor Summary
PP(java.lang.String n, java.lang.String netname)
          Construct the logical process for this physical process.
 
Method Summary
 PayLoad Compute(PayLoad pl)
          Note that for testing we send and receive pure error.
 java.lang.Double getPPstate()
          Get the physical process state.
 int portTable()
          A translation from current node name to port number to watch.
 double recvRateCurrent()
          The current receive rate over the last half second.
 long recvRateToDate(int port)
          Return the average received rate since startup.
 void setPPstate(java.lang.Double is)
          Set the physical process state.
 
Methods inherited from class atropos.lp.AvnmpLP
checkParameterTimes, displayConfiguration, displayLvt, displayLVT, displayQueues, finalize, getCausalityRollbacks, getGenRate, getlvt, getnext, getRealTime, getRecQSize, getSndQSize, getstate, getStateQSize, getTolerance, getToleranceRollbacks, getvm, inputvm, isDriver, isLP, isQuitTime, logState, myname, savestate, setGenRate, setGVTUpdate, setLookahead, setParameterTimes, setProcList, setStepsize, toString
 
Methods inherited from class atropos.gvt.Gvt
addProcs, calcLocalMinimum, collectMinima, getNumProcs, getNumUpdates, getProcReport, getState, getTimeSinceLastUpdate, getUpdateInterval, isDone, isUpdateTime, reportIn, reportLocalMinimum, resetGvt, startGvt, storeIn, storeOut
 
Methods inherited from class atropos.lp.AvnmpDebug
debugType, log, log, log, log, measure, resetLog, setLevel, writeLog
 
Methods inherited from class atropos.lp.AvnmpTime
add, adjustRelative, diff, now, resetRelative, set, startTime, time
 
Methods inherited from class java.util.Date
after, before, clone, compareTo, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PP

public PP(java.lang.String n,
          java.lang.String netname)
Construct the logical process for this physical process.
Parameters:
n - The process name.
context - The SNMP agent context.
netname - The network node name.
Method Detail

recvRateToDate

public long recvRateToDate(int port)
Return the average received rate since startup.
Parameters:
port - The port upon which to check the input rate.
Returns:
Return the current received rate.

recvRateCurrent

public double recvRateCurrent()
The current receive rate over the last half second.
Returns:
The receive rate over the last half second.

portTable

public int portTable()
A translation from current node name to port number to watch.
Overrides:
portTable in class AvnmpLP
Returns:
The port number to watch.

Compute

public PayLoad Compute(PayLoad pl)
Note that for testing we send and receive pure error. This process just sends the error straight through.
Overrides:
Compute in class AvnmpLP
Parameters:
pl - The payload of the virtual message
Returns:
The computed output.

getPPstate

public java.lang.Double getPPstate()
Get the physical process state.
Overrides:
getPPstate in class AvnmpLP
Returns:
Get the process state.

setPPstate

public void setPPstate(java.lang.Double is)
Set the physical process state.
Overrides:
setPPstate in class AvnmpLP
Parameters:
is - Input state to be restored.
Returns:
Set the process state.


Copyright © 2002 GE Corporate Research and Development. All Rights Reserved.