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

Public Member Functions

final void setValue (final double value)
 
final String getFromLocation ()
 
final String getToLocation ()
 
final double getValue ()
 
final String toString ()
 

Protected Member Functions

 Entry (final String f_loc, final String t_loc, final double value)
 

Private Attributes

final String f_loc
 
final String t_loc
 
double value
 

Detailed Description

Definition at line 23 of file Entry.java.

Constructor & Destructor Documentation

◆ Entry()

org.matsim.matrices.Entry.Entry ( final String  f_loc,
final String  t_loc,
final double  value 
)
protected

Definition at line 37 of file Entry.java.

37  {
38  if ((f_loc == null)||(t_loc == null)) {
39  throw new RuntimeException("[f_loc="+f_loc+",t_loc="+t_loc+", 'null' is not allowed!]");
40  }
41  this.f_loc = f_loc;
42  this.t_loc = t_loc;
43  this.value = value;
44  }
final String f_loc
Definition: Entry.java:29
final String t_loc
Definition: Entry.java:30
double value
Definition: Entry.java:31

Member Function Documentation

◆ setValue()

final void org.matsim.matrices.Entry.setValue ( final double  value)

Definition at line 53 of file Entry.java.

References org.matsim.matrices.Entry.value.

Referenced by org.matsim.matrices.Matrix.setEntry().

53  {
54  this.value = value;
55  }
double value
Definition: Entry.java:31

◆ getFromLocation()

final String org.matsim.matrices.Entry.getFromLocation ( )

Definition at line 61 of file Entry.java.

References org.matsim.matrices.Entry.f_loc.

61  {
62  return this.f_loc;
63  }
final String f_loc
Definition: Entry.java:29

◆ getToLocation()

final String org.matsim.matrices.Entry.getToLocation ( )

Definition at line 65 of file Entry.java.

References org.matsim.matrices.Entry.t_loc.

Referenced by org.matsim.matrices.Matrix.getEntry().

65  {
66  return this.t_loc;
67  }
final String t_loc
Definition: Entry.java:30

◆ getValue()

final double org.matsim.matrices.Entry.getValue ( )

Definition at line 69 of file Entry.java.

References org.matsim.matrices.Entry.value.

Referenced by org.matsim.visum.VisumMatrixWriter.writeFile().

69  {
70  return this.value;
71  }
double value
Definition: Entry.java:31

◆ toString()

final String org.matsim.matrices.Entry.toString ( )

Definition at line 78 of file Entry.java.

78  {
79  return "[" + this.f_loc + "===" + this.value + "==>" + this.t_loc + "]";
80  }
final String f_loc
Definition: Entry.java:29
final String t_loc
Definition: Entry.java:30
double value
Definition: Entry.java:31

Member Data Documentation

◆ f_loc

final String org.matsim.matrices.Entry.f_loc
private

Definition at line 29 of file Entry.java.

Referenced by org.matsim.matrices.Entry.getFromLocation().

◆ t_loc

final String org.matsim.matrices.Entry.t_loc
private

Definition at line 30 of file Entry.java.

Referenced by org.matsim.matrices.Entry.getToLocation().

◆ value

double org.matsim.matrices.Entry.value
private

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