mwalk.visitor
Class GatewayMetricVisitor
java.lang.Object
|
+--mwalk.visitor.AbstractVisitor
|
+--mwalk.visitor.PrintVisitor
|
+--mwalk.visitor.MetricVisitor
|
+--mwalk.visitor.BasicMetricVisitor
|
+--mwalk.visitor.GatewayMetricVisitor
- public class GatewayMetricVisitor
- extends BasicMetricVisitor
An extension to the basic metric visitor which considers
gateways as the receivers.
- Version:
- 1.0
- Author:
- Robert Chalmers
Field Summary |
private static java.lang.String |
CFG_BASE
Base of keys in configuration file |
private static java.lang.String |
DEF_FILENAME
Default metric file name if none supplied |
protected java.lang.String |
def_gfilename
Default gateway file name if none supplied |
protected int |
gateways
|
protected java.lang.String |
gfilename
|
protected java.io.PrintStream |
gps
|
protected int |
receivers
|
Methods inherited from class mwalk.visitor.AbstractVisitor |
cfgBoolean,
cfgInt,
cfgString,
cfgVisitor,
evaluator,
evaluator,
getParents,
getReceivers,
haveSeen,
haveVisited,
markSeen,
markVisited,
nextReceiver,
prefix,
verbose,
visitUp,
visitUp,
walkDown,
walkUp |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
CFG_BASE
private static final java.lang.String CFG_BASE
- Base of keys in configuration file
DEF_FILENAME
private static final java.lang.String DEF_FILENAME
- Default metric file name if none supplied
gps
protected java.io.PrintStream gps
gfilename
protected java.lang.String gfilename
def_gfilename
protected java.lang.String def_gfilename
- Default gateway file name if none supplied
gateways
protected int gateways
receivers
protected int receivers
GatewayMetricVisitor
public GatewayMetricVisitor()
- Default constructor.
GatewayMetricVisitor
public GatewayMetricVisitor(java.lang.String metricFile,
java.lang.String gatewayFile)
- Constructor.
- Parameters:
String
- new default filenameString
- new default gateway filename
GatewayMetricVisitor
public GatewayMetricVisitor(long periods)
- Constructor.
- Parameters:
long
- number of periods to cover session
GatewayMetricVisitor
public GatewayMetricVisitor(java.lang.String metricFile,
java.lang.String gatewayFile,
long periods)
- Constructor.
- Parameters:
String
- new default filenameString
- new default gateway filenamelong
- number of periods to cover session
init
public boolean init(Tree tree)
- Initialize the visitor state.
- Overrides:
- init in class BasicMetricVisitor
- Parameters:
Tree
- current tree instance
reset
public void reset(Tree tree)
- Reset the visitor for a new pass over the tree.
- Overrides:
- reset in class AbstractVisitor
- Parameters:
Tree
- vistited tree
doVisit
protected MetricCount doVisit(Tree tree,
TreeNode node,
java.util.Vector list)
- Overrides:
- doVisit in class BasicMetricVisitor
process
protected void process(Tree tree)
throws VisitException
- Overrides:
- process in class BasicMetricVisitor
Submit a bug or feature mwalk Platform API Specification 0.3.0
Sensitivity: {Public:Research}
Copyright(c) 2000, Robert Chalmers