MATSIM
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
org.matsim.counts.Volume Class Reference

Public Member Functions

final void setValue (double val)
 
final int getHourOfDayStartingWithOne ()
 
final double getValue ()
 
final String toString ()
 

Protected Member Functions

 Volume (final int h, final double val)
 

Private Attributes

final int h_
 
double val_
 

Detailed Description

Old API to access data fron Count. This class is not needed when using new API via MeasurementLocation.

Definition at line 27 of file Volume.java.

Constructor & Destructor Documentation

◆ Volume()

org.matsim.counts.Volume.Volume ( final int  h,
final double  val 
)
protected

Definition at line 31 of file Volume.java.

31  {
32 
33  /* no error checking needed as we use schema instead of dtd
34 
35  if ((h == -1)) {
36  Gbl.errorMsg("[h="+h+", negative values are not allowed!]");
37  }
38  if ((val == -1)) {
39  Gbl.errorMsg("[val="+val+", negative values are not allowed!]");
40  }
41  */
42 
43  this.h_ = h;
44  this.val_ = val;
45  }

Member Function Documentation

◆ setValue()

final void org.matsim.counts.Volume.setValue ( double  val)

Definition at line 47 of file Volume.java.

47  {
48  this.val_ = val;
49  }

◆ getHourOfDayStartingWithOne()

final int org.matsim.counts.Volume.getHourOfDayStartingWithOne ( )

Definition at line 51 of file Volume.java.

References org.matsim.counts.Volume.h_.

51  {
52  return this.h_;
53  }

◆ getValue()

final double org.matsim.counts.Volume.getValue ( )

Definition at line 54 of file Volume.java.

References org.matsim.counts.Volume.val_.

Referenced by org.matsim.counts.algorithms.CountsComparisonAlgorithm.compare().

54  {
55  return this.val_;
56  }

◆ toString()

final String org.matsim.counts.Volume.toString ( )

Definition at line 59 of file Volume.java.

59  {
60  return "[" + this.h_ + "===" + this.val_ + "]";
61  }

Member Data Documentation

◆ h_

final int org.matsim.counts.Volume.h_
private

Definition at line 28 of file Volume.java.

Referenced by org.matsim.counts.Volume.getHourOfDayStartingWithOne().

◆ val_

double org.matsim.counts.Volume.val_
private

Definition at line 29 of file Volume.java.

Referenced by org.matsim.counts.Volume.getValue().


The documentation for this class was generated from the following file: