ENTITY spherical_point SUBTYPE OF (cartesian_point); r : length_measure; theta : plane_angle_measure; phi : plane_angle_measure; DERIVE SELF\cartesian_point.coordinates : LIST [1:3] OF length_measure := [r*sin(theta)*cos(phi), r*sin(theta)*sin(phi), r*cos(theta)]; WHERE wr1: r >= 0.0; END_ENTITY; -- spherical_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; spherical_point r: length_measure; theta: plane_angle_measure; phi: plane_angle_measure; (RT) (DER) coordinates: LIST [1:3] OF length_measure; |
Global rules for this entity data type- |
public interface ESpherical_point extends ECartesian_pointr (explicit attribute)boolean testR(ESpherical_point type)double getR(ESpherical_point type) void setR(ESpherical_point type, double value) void unsetR(ESpherical_point type) theta (explicit attribute)boolean testTheta(ESpherical_point type)double getTheta(ESpherical_point type) void setTheta(ESpherical_point type, double value) void unsetTheta(ESpherical_point type) phi (explicit attribute)boolean testPhi(ESpherical_point type)double getPhi(ESpherical_point type) void setPhi(ESpherical_point type, double value) void unsetPhi(ESpherical_point type) |
public class CSpherical_point implements ESpherical_pointstatic EAttribute attributeR(ESpherical_point type)static EAttribute attributeTheta(ESpherical_point type) static EAttribute attributePhi(ESpherical_point type) static EAttribute attributeCoordinates(ESpherical_point type) |
public class ASpherical_point extends AEntitypublic ESpherical_point getByIndex(int index)public ESpherical_point getCurrentMember(SdaiIterator it) |