|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.recording.state.State
faa.tg.dra.objects.DraCount
public class DraCount
DraCount is a Recordable that is used to define an object containing totals and interval counts of Recordables received. This Recordable is generated by DraCounter. Information about the sort criteria is available. DraCount can print its information out to a String.See the source: DraCount.java
| Field Summary | |
|---|---|
private java.lang.Class |
classInst
|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
private int |
interval
|
private int |
intervalCount
|
private static MethodMap |
methodMap
|
private java.lang.String |
name
|
(package private) static long |
serialVersionUID
|
private SimulationTime |
simTime
|
private int |
totalCount
|
| Constructor Summary | |
|---|---|
DraCount(int totalCount,
int intervalCount,
int interval,
SimulationTime simTime,
java.lang.String name,
java.lang.Class classInst)
Constructs the DraCount object from values passed as parameters. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getClassInst()
Gets the object of the class instance that was filtered on. |
int |
getCurrIntervalNum()
Returns the current interval number (the number of intervals since the beginning of the sim). |
java.lang.String |
getDelimHeader()
Gets a header string for delimited reports for DraCount information. |
int |
getInterval()
Gets the length of the interval of time to count events for. |
int |
getIntervalCount()
Returns the count of DraEvents matching the class instance & name for the interval ending at simTime. |
MethodMap |
getMethodMap()
Returns the DraCount information in DelimWritable format. |
java.lang.String |
getName()
Gets the Recordable name filtered on or "" if none selected. |
SimulationTime |
getSimTime()
Gets the simulation time events were counted up to. |
SimulationTime |
getStartTime()
Gets the start of the interval for the simulation time events. |
int |
getTotalCount()
Returns the total count of DraEvents matching the class instance and name, up to simTime time. |
private static MethodMap |
makeMethodMap()
Creates the DraCount information in DelimWritable format |
java.lang.String |
toDraText()
Returns the DR&A information as a text String. |
java.lang.String |
toString()
Prints the DraCount information to a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
private int totalCount
private int intervalCount
private int interval
private SimulationTime simTime
private java.lang.String name
private java.lang.Class classInst
private static MethodMap methodMap
| Constructor Detail |
|---|
public DraCount(int totalCount,
int intervalCount,
int interval,
SimulationTime simTime,
java.lang.String name,
java.lang.Class classInst)
totalCount - Total count of matching DraEvents up to simTime.intervalCount - Count of matching DraEvents for interval ending
at simTime.interval - Interval of time to count events for.simTime - Simulation time at which totals were taken.name - Recordable name that was filtered on (null if not used).classInst - Object of the class instance that was filtered on.| Method Detail |
|---|
public java.lang.String getName()
getName in interface ManagedObjectgetName in class Statepublic java.lang.Object getClassInst()
public int getCurrIntervalNum()
public int getInterval()
public int getIntervalCount()
public SimulationTime getSimTime()
getSimTime in interface HasSimTimegetSimTime in class Statepublic SimulationTime getStartTime()
public int getTotalCount()
public java.lang.String getDelimHeader()
public MethodMap getMethodMap()
getMethodMap in interface DelimWritableprivate static MethodMap makeMethodMap()
public java.lang.String toDraText()
toDraText in interface TextWritablepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||