Loading ttcn/Security/LibItsSecurity_Functions.ttcn3 +24 −7 Original line number Original line Diff line number Diff line Loading @@ -701,10 +701,8 @@ module LibItsSecurity_Functions { */ */ function f_isValidTwoDLocation(in template (value) TwoDLocation p_location function f_isValidTwoDLocation(in template (value) TwoDLocation p_location ) return boolean { ) return boolean { return not ( p_location.longitude > c_maxLongitude return p_location.longitude != c_maxLongitude+1 or p_location.longitude < c_minLongitude and p_location.latitude != c_maxLatitude+1; or p_location.latitude < c_minLatitude or p_location.latitude > c_maxLatitude ); } } /** /** Loading @@ -727,16 +725,35 @@ module LibItsSecurity_Functions { function f_isContinuousRectangularRegions(in template (value) RectangularRegions regions function f_isContinuousRectangularRegions(in template (value) RectangularRegions regions ) return boolean { ) return boolean { // TODO: implement it // TODO: call external function return true; return true; } } function f_isRectangularRegionsInside(in template (value) RectangularRegions p_parent, function f_isRectangularRegionsInside(in template (value) RectangularRegions p_parent, in template (value) RectangularRegions p_region in template (value) RectangularRegions p_region ) return boolean { ) return boolean { //TODO: implement it // TODO: convert rectangular regions to polygons and check polygons return true; } /** * @desc Check that given polygon doesn't have neither self-intersections no holes. * @param p_region Polygonal Region * @return true on success, false otherwise */ function f_isValidPolygonalRegion(in template (value) PolygonalRegion p_region ) return boolean { // TODO: call external function return true; return true; } } function f_isPolygonalRegionInside(in template (value) PolygonalRegion p_parent, in template (value) PolygonalRegion p_region ) return boolean { // TODO: call external function return true; } } } } // End of module LibItsSecurity_Functions } // End of module LibItsSecurity_Functions No newline at end of file Loading
ttcn/Security/LibItsSecurity_Functions.ttcn3 +24 −7 Original line number Original line Diff line number Diff line Loading @@ -701,10 +701,8 @@ module LibItsSecurity_Functions { */ */ function f_isValidTwoDLocation(in template (value) TwoDLocation p_location function f_isValidTwoDLocation(in template (value) TwoDLocation p_location ) return boolean { ) return boolean { return not ( p_location.longitude > c_maxLongitude return p_location.longitude != c_maxLongitude+1 or p_location.longitude < c_minLongitude and p_location.latitude != c_maxLatitude+1; or p_location.latitude < c_minLatitude or p_location.latitude > c_maxLatitude ); } } /** /** Loading @@ -727,16 +725,35 @@ module LibItsSecurity_Functions { function f_isContinuousRectangularRegions(in template (value) RectangularRegions regions function f_isContinuousRectangularRegions(in template (value) RectangularRegions regions ) return boolean { ) return boolean { // TODO: implement it // TODO: call external function return true; return true; } } function f_isRectangularRegionsInside(in template (value) RectangularRegions p_parent, function f_isRectangularRegionsInside(in template (value) RectangularRegions p_parent, in template (value) RectangularRegions p_region in template (value) RectangularRegions p_region ) return boolean { ) return boolean { //TODO: implement it // TODO: convert rectangular regions to polygons and check polygons return true; } /** * @desc Check that given polygon doesn't have neither self-intersections no holes. * @param p_region Polygonal Region * @return true on success, false otherwise */ function f_isValidPolygonalRegion(in template (value) PolygonalRegion p_region ) return boolean { // TODO: call external function return true; return true; } } function f_isPolygonalRegionInside(in template (value) PolygonalRegion p_parent, in template (value) PolygonalRegion p_region ) return boolean { // TODO: call external function return true; } } } } // End of module LibItsSecurity_Functions } // End of module LibItsSecurity_Functions No newline at end of file