Class MathExpressionAttribute

All Implemented Interfaces:
Viewable, Cacheable, Observed, Retrievable, Serializable, ColumnAccessByName, ObjectModel, Persistent

public class MathExpressionAttribute extends MultiValuedStringAttribute
This class represents an attribute of a math expression as javascript, latex etc... 경우에 따라서 하나의 Expresison 으로 처리할 수 없기 때문에 multivaluedString 이다.
Version:
$Id: MultiValuedStringAttribute.java,v 1.2 2008/12/25 04:03:44 youngho Exp $
Author:
Youngho Cho
See Also:
  • Constructor Details

    • MathExpressionAttribute

      public MathExpressionAttribute()
      Creates a new MathExpressionAttribute object.
  • Method Details

    • getText

      public String[] getText() throws TorqueException
      저장된 수식들을 구한다.
      Returns:
      mathmatical expression array
      Throws:
      TorqueException - 값 조회 중 오류가 발생한 경우
    • getMathJaxValues

      public String[] getMathJaxValues() throws TorqueException
      MathJax 에서 처리할 수 있는 형태를 구한다. '$' 로 감싼 Math Expression
      Returns:
      MathJax 형식의 수식 배열
      Throws:
      TorqueException - 값 조회 중 오류가 발생한 경우
    • getExpressions

      public String[] getExpressions() throws TorqueException
      EasyGrapher 를 위한 data source 를 만든다.
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • isGraphical

      public boolean isGraphical() throws TorqueException
      MathExpression 이 graphical representation 이 가능한지 아닌지 판단한다. 참조로 manual 로 GraphEnable 속성이 존재한다.
      Returns:
      true/false
      Throws:
      TorqueException - 값 조회 중 오류가 발생한 경우
    • canGraph

      public boolean canGraph() throws Exception
      이 object 이 isGraphical true 인 경우에 canGraph 설정값을 확인한다. GraphEnable AttributeValue check
      Returns:
      true/false
      Throws:
      Exception - 값 조회 중 오류가 발생한 경우
    • findArgument

      public char findArgument(String expression)
      수식의 인자(argument)를 구한다. 극좌표 형식이면 'θ', 아니면 'x' 이다.
      Parameters:
      expression - 수식
      Returns:
      'x', 'y', or 'θ'