ENTITY polar_point SUBTYPE OF (cartesian_point); r : length_measure; theta : plane_angle_measure; DERIVE SELF\cartesian_point.coordinates : LIST [1:3] OF length_measure := [r*cos(theta), r*sin(theta)]; WHERE wr1: r >= 0.0; END_ENTITY; -- polar_point |
Entity data types and their attributesrepresentation_itemname: label; geometric_representation_item (DER) dim: dimension_count; point - cartesian_point coordinates: LIST [1:3] OF length_measure; polar_point r: length_measure; theta: plane_angle_measure; (RT) (DER) coordinates: LIST [1:3] OF length_measure; |
Global rules for this entity data type- |
public interface EPolar_point extends ECartesian_pointr (explicit attribute)boolean testR(EPolar_point type)double getR(EPolar_point type) void setR(EPolar_point type, double value) void unsetR(EPolar_point type) theta (explicit attribute)boolean testTheta(EPolar_point type)double getTheta(EPolar_point type) void setTheta(EPolar_point type, double value) void unsetTheta(EPolar_point type) |
public class CPolar_point implements EPolar_pointstatic EAttribute attributeR(EPolar_point type)static EAttribute attributeTheta(EPolar_point type) static EAttribute attributeCoordinates(EPolar_point type) |
public class APolar_point extends AEntitypublic EPolar_point getByIndex(int index)public EPolar_point getCurrentMember(SdaiIterator it) |