PGROUTING  2.6
check_parameters.h File Reference
Include dependency graph for check_parameters.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void check_parameters (int heuristic, double factor, double epsilon)
 

Function Documentation

void check_parameters ( int  heuristic,
double  factor,
double  epsilon 
)

Definition at line 34 of file check_parameters.c.

Referenced by process().

37  {
38  if (heuristic > 5 || heuristic < 0) {
39  ereport(ERROR,
40  (errmsg("Unknown heuristic"),
41  errhint("Valid values: 0~5")));
42  }
43  if (factor <= 0) {
44  ereport(ERROR,
45  (errmsg("Factor value out of range"),
46  errhint("Valid values: positive non zero")));
47  }
48  if (epsilon < 1) {
49  ereport(ERROR,
50  (errmsg("Epsilon value out of range"),
51  errhint("Valid values: 1 or greater than 1")));
52  }
53 }

Here is the caller graph for this function: