de.uka.ipd.sdq.ByCounter.execution
Class CountingArtefactInformation

java.lang.Object
  extended by de.uka.ipd.sdq.ByCounter.execution.CountingArtefactInformation
All Implemented Interfaces:
java.lang.Comparable<CountingArtefactInformation>

public final class CountingArtefactInformation
extends java.lang.Object
implements java.lang.Comparable<CountingArtefactInformation>

A small class to describe results of a counting step.

Since:
0.1
Version:
1.2
Author:
Martin Krogmann, Michael Kuperberg

Constructor Summary
CountingArtefactInformation(CountingResultIndexing indexing)
          The default constructor.
CountingArtefactInformation(CountingResultIndexing indexing, java.lang.String methodName, java.lang.Long invocationReceivedTime, java.util.List<RuntimeMethodParameters> inputPrms, java.lang.Long resultsReceivedByCollectorTime, java.util.List<RuntimeMethodParameters> outputPrms)
          Parametrised constructor
 
Method Summary
 int compareTo(CountingArtefactInformation o)
          (non-Javadoc)
 CountingResult getCountingResult()
          Delegating getter for counting results that correspond to this artefact
 java.util.List<RuntimeMethodParameters> getInputPrms()
          Simple getter
 java.lang.Long getInvocationReceivedTime()
          Simple getter
 java.lang.String getMethodName()
          Simple getter
 CountingResultIndexing getMyIndexing()
          A simple getter
 java.util.List<RuntimeMethodParameters> getOutputPrms()
          Simple getter
 java.lang.Long getResultsReceivedByCollectorTime()
          Simple getter
 java.lang.Long getTime_InvocationReceived()
          Simple getter
 java.lang.Long getTime_resultsReceivedByCollector()
          Simple getter
 boolean isInstrumented()
          Simple getter
 boolean isLogWrittenToDisk()
          Simple getter
 void setInputPrms(java.util.List<RuntimeMethodParameters> inputPrms)
          Simple setter
 void setInstrumented(boolean isInstrumented)
          Simple setter
 void setLogWrittenToDisk(boolean logWrittenToDisk)
          Simple setter
 void setMethodName(java.lang.String methodName)
          Simple setter
 void setOutputPrms(java.util.List<RuntimeMethodParameters> outputPrms)
          Simple setter
 void setTime_InvocationReceived(java.lang.Long time_InvocationReceived)
          Simple setter
 void setTime_resultsReceivedByCollector(java.lang.Long time_resultsReceivedByCollector)
          Simple setter
 java.lang.String toString()
          Returns a String representation of this class
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CountingArtefactInformation

public CountingArtefactInformation(CountingResultIndexing indexing)
The default constructor.

Parameters:
indexing - The corresponding indexing infrastructure.

CountingArtefactInformation

public CountingArtefactInformation(CountingResultIndexing indexing,
                                   java.lang.String methodName,
                                   java.lang.Long invocationReceivedTime,
                                   java.util.List<RuntimeMethodParameters> inputPrms,
                                   java.lang.Long resultsReceivedByCollectorTime,
                                   java.util.List<RuntimeMethodParameters> outputPrms)
Parametrised constructor

Parameters:
methodName - reporting method (thus, it is an instrumented one)
invocationReceivedTime - the timestamp when the instrumented method detected that it is being invoked
inputPrms - input parameters of the instrumented method
resultsReceivedByCollectorTime - the timestamp when CountingResultCollector received the information
outputPrms - output parameters of the method
Method Detail

getMyIndexing

public CountingResultIndexing getMyIndexing()
A simple getter

Returns:
the underlying instance of CountingResultIndexing.

compareTo

public int compareTo(CountingArtefactInformation o)
(non-Javadoc)

Specified by:
compareTo in interface java.lang.Comparable<CountingArtefactInformation>
See Also:
Comparable.compareTo(java.lang.Object)

getCountingResult

public CountingResult getCountingResult()
Delegating getter for counting results that correspond to this artefact

Returns:
counting results that correspond to this artefact

getInputPrms

public java.util.List<RuntimeMethodParameters> getInputPrms()
Simple getter

Returns:
inputPrms

getInvocationReceivedTime

public java.lang.Long getInvocationReceivedTime()
Simple getter

Returns:
time_InvocationReceived

getMethodName

public java.lang.String getMethodName()
Simple getter

Returns:
methodName

getOutputPrms

public java.util.List<RuntimeMethodParameters> getOutputPrms()
Simple getter

Returns:
outputPrms

getResultsReceivedByCollectorTime

public java.lang.Long getResultsReceivedByCollectorTime()
Simple getter

Returns:
time_resultsReceivedByCollector

getTime_InvocationReceived

public java.lang.Long getTime_InvocationReceived()
Simple getter

Returns:
time_InvocationReceived

getTime_resultsReceivedByCollector

public java.lang.Long getTime_resultsReceivedByCollector()
Simple getter

Returns:
time_resultsReceivedByCollector

isInstrumented

public boolean isInstrumented()
Simple getter

Returns:
isInstrumented

isLogWrittenToDisk

public boolean isLogWrittenToDisk()
Simple getter

Returns:
logWrittenToDisk

setInputPrms

public void setInputPrms(java.util.List<RuntimeMethodParameters> inputPrms)
Simple setter

Parameters:
inputPrms - to be set

setInstrumented

public void setInstrumented(boolean isInstrumented)
Simple setter

Parameters:
isInstrumented - to be set

setLogWrittenToDisk

public void setLogWrittenToDisk(boolean logWrittenToDisk)
Simple setter

Parameters:
logWrittenToDisk - to be set

setMethodName

public void setMethodName(java.lang.String methodName)
Simple setter

Parameters:
methodName - to be set

setOutputPrms

public void setOutputPrms(java.util.List<RuntimeMethodParameters> outputPrms)
Simple setter

Parameters:
outputPrms - to be set

setTime_InvocationReceived

public void setTime_InvocationReceived(java.lang.Long time_InvocationReceived)
Simple setter

Parameters:
time_InvocationReceived - to be set

setTime_resultsReceivedByCollector

public void setTime_resultsReceivedByCollector(java.lang.Long time_resultsReceivedByCollector)
Simple setter

Parameters:
time_resultsReceivedByCollector - to be set

toString

public java.lang.String toString()
Returns a String representation of this class

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()