added ComputedSegment class and use criteria object to fill json request to pce