Token
- java.lang.Object
-  
  - com.dashoptimization.objects.Token
 
-  
   - All Implemented Interfaces:
- 
     java.lang.Comparable<Token>
 
 public final class Token extends java.lang.Object implements java.lang.Comparable<Token> A token in a non-linear formula. All constructors of this class are private. Use the various static factory functions to get new instances. This avoids creating multiple instances that refer to the same token (like for example theEOFtoken.- Since:
- 43.00
 
-  
    
   -  
         Field SummaryModifier and Type Field Description static TokenABSabsfunction.static TokenARCCOSarccosfunction.static TokenARCSINarcsinfunction.static TokenARCTANarctanfunction.static TokenCOLONColon token.static TokenCOMMAComma token.static TokenCOScosfunction.static TokenDIVIDEDivide token.static TokenEOFEnd of formula token.static TokenEXPexpfunction.static TokenEXPONENTExponentiation token.static TokenLBLeft-bracket token.static TokenLNlnfunction.static TokenLOG10log10function.static TokenMAXmaxfunction.static TokenMINminfunction.static TokenMINUSMinus token.static TokenMULTIPLYMultiply token.static TokenPLUSPlus token.static TokenPRODprodfunction.static TokenPWLpwlfunction.static TokenRBRight-bracket token.static TokenSIGNsignfunction.static TokenSINsinfunction.static TokenSQRTsqrtfunction.static TokenSUMsumfunction.static TokenTANtanfunction.static TokenUMINUSUnary minus token.
 -  
         Method SummaryModifier and Type Method Description static Tokencolumn(int col)Create a token that represents a reference to columncol.intcompareTo(Token other)static Tokenconstant(double value)Create a token that represents the constant valuevalue.booleanequals(Token other)booleanequals(java.lang.Object other)static Tokenfunction(int id)Create a token that represents a call to user functionid.intgetType()doublegetValue()inthashCode()static TokeninternalFunction(int id)Create a token that represents a call to internal functionid.static Tokenof(int type, double value)Create a token from a type and a value.java.lang.StringtoString()
 
-  
         
-  
    
   -  
         Field Detail-  EOFpublic static final Token EOF End of formula token.- Since:
- 43.00
 
 -  LBpublic static final Token LB Left-bracket token.- Since:
- 43.00
 
 -  RBpublic static final Token RB Right-bracket token.- Since:
- 43.00
 
 -  UMINUSpublic static final Token UMINUS Unary minus token.- Since:
- 43.00
 
 -  EXPONENTpublic static final Token EXPONENT Exponentiation token.- Since:
- 43.00
 
 -  MULTIPLYpublic static final Token MULTIPLY Multiply token.- Since:
- 43.00
 
 -  DIVIDEpublic static final Token DIVIDE Divide token.- Since:
- 43.00
 
 -  PLUSpublic static final Token PLUS Plus token.- Since:
- 43.00
 
 -  MINUSpublic static final Token MINUS Minus token.- Since:
- 43.00
 
 -  COMMApublic static final Token COMMA Comma token.- Since:
- 43.00
 
 -  COLONpublic static final Token COLON Colon token.- Since:
- 43.00
 
 -  LOG10public static final Token LOG10 log10function.- Since:
- 43.00
 
 -  LNpublic static final Token LN lnfunction.- Since:
- 43.00
 
 -  EXPpublic static final Token EXP expfunction.- Since:
- 43.00
 
 -  ABSpublic static final Token ABS absfunction.- Since:
- 43.00
 
 -  SQRTpublic static final Token SQRT sqrtfunction.- Since:
- 43.00
 
 -  SINpublic static final Token SIN sinfunction.- Since:
- 43.00
 
 -  COSpublic static final Token COS cosfunction.- Since:
- 43.00
 
 -  TANpublic static final Token TAN tanfunction.- Since:
- 43.00
 
 -  ARCSINpublic static final Token ARCSIN arcsinfunction.- Since:
- 43.00
 
 -  ARCCOSpublic static final Token ARCCOS arccosfunction.- Since:
- 43.00
 
 -  ARCTANpublic static final Token ARCTAN arctanfunction.- Since:
- 43.00
 
 -  MINpublic static final Token MIN minfunction.- Since:
- 43.00
 
 -  MAXpublic static final Token MAX maxfunction.- Since:
- 43.00
 
 -  PWLpublic static final Token PWL pwlfunction.- Since:
- 43.00
 
 -  SUMpublic static final Token SUM sumfunction.- Since:
- 43.00
 
 -  PRODpublic static final Token PROD prodfunction.- Since:
- 43.00
 
 -  SIGNpublic static final Token SIGN signfunction.- Since:
- 43.00
 
 
-  
 -  
         Method Detail-  getTypepublic int getType() 
 -  getValuepublic double getValue() 
 -  equalspublic boolean equals(java.lang.Object other) Used in these examples: - FixBV
- Knapsack
- MostViolated
- SaveSol
- Tableau
 - Overrides:
- 
          equalsin classjava.lang.Object
- Since:
- 43.00
 
 -  equalspublic boolean equals(Token other) Used in these examples: - FixBV
- Knapsack
- MostViolated
- SaveSol
- Tableau
 - Since:
- 43.00
 
 -  compareTopublic int compareTo(Token other) - Specified by:
- 
          compareToin interfacejava.lang.Comparable<Token>
- Since:
- 43.00
 
 -  hashCodepublic int hashCode() - Overrides:
- 
          hashCodein classjava.lang.Object
- Since:
- 43.00
 
 -  constantpublic static Token constant(double value) Create a token that represents the constant valuevalue.- Returns:
- The new token.
- Since:
- 43.00
 
 -  columnpublic static Token column(int col) Create a token that represents a reference to columncol.- Parameters:
- 
          col- Index of column to reference.
- Returns:
- The new token.
- Since:
- 43.00
 
 -  functionpublic static Token function(int id) Create a token that represents a call to user functionid.- Parameters:
- 
          id- User function id.
- Returns:
- The new token.
- Since:
- 43.00
 
 -  internalFunctionpublic static Token internalFunction(int id) Create a token that represents a call to internal functionid.- Parameters:
- 
          id- Internal function id.
- Returns:
- The new token.
- Since:
- 43.00
 
 -  ofpublic static Token of(int type, double value) Create a token from a type and a value.- Parameters:
- 
          type- Token type.
- 
          value- Token value.
- Returns:
- 
          The token represented by 
          typeandvalue.
- Since:
- 43.00
 
 -  toStringpublic java.lang.String toString() Used in these examples: - GlobalRHSParametrics
- IISExample
- Knapsack
- Trimloss
 - Overrides:
- 
          toStringin classjava.lang.Object
- Since:
- 43.00
 
 
-  
 
-  
         
© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
 
