Hamiltonian mechanics, localisation observables, sojourn times, NLS, KdV