object
The London metro. Adapted from the "Simply Logical" book by Peter Flach.
Sergio Castro
static, context_switching_calls
(no dependencies on other files)
Station1 is connected to Station2 by means of Line.
dynamic
connected(Station1,Station2,Line)
Station1 is nearby Station2.
static
nearby(Station1,Station2)
Station2 is reachable from Station1 by means of traversing IntermediateStations.
static
reachable(Station1,Station2,IntermediateStations)
Name is the name of a Line.
static
line(Name)
Removes all the lines.
static
(none)
(none)