public class Operator extends Object implements Serializable
OperatorSet
,
Serialized FormConstructor and Description |
---|
Operator(String name,
PostfixMathCommandI pfmc)
construct a new operator.
|
Operator(String name,
String symbol,
PostfixMathCommandI pfmc)
construct a new operator, with a different name and symbol
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
returns a unique name definig this operator.
|
PostfixMathCommandI |
getPFMC() |
String |
getSymbol()
returns the symbol used by this operator.
|
void |
setPFMC(PostfixMathCommandI pfmc) |
String |
toString()
returns a verbose representation of the operator.
|
public Operator(String name, PostfixMathCommandI pfmc)
name
- printable name of operatorpfmc
- postfix math command for opperatorpublic Operator(String name, String symbol, PostfixMathCommandI pfmc)
name
- name of operator, must be unique, used when describing operatorsymbol
- printable name of operator, used for printing equationspfmc
- postfix math command for opperatorpublic final String getSymbol()
public final String getName()
public final PostfixMathCommandI getPFMC()
public final void setPFMC(PostfixMathCommandI pfmc)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics