Added some class definitions.
Added processSegment function with TODO in LocalConstraint.