public class FieldConsole extends Console
setfield name
option. So
setfield rational
will use rational numbers. The fields
available are:
Modifier and Type | Class and Description |
---|---|
class |
FieldConsole.AllToComplesDecerator |
class |
FieldConsole.BigDecPFMC |
class |
FieldConsole.DoublePFMC |
class |
FieldConsole.RationalBigDecToDoubleDecerator |
static class |
FieldConsole.RationalDoubleNumberFactory
NumberFactory which creates rational numbers if possible otherwise doubles.
|
class |
FieldConsole.RationalPFMC |
class |
FieldConsole.RationalToBigDecDecerator |
static class |
FieldConsole.Type
Describes the type of Field used.
|
Console.JepPrintStream, Console.SPEC_ACTION
java.applet.Applet.AccessibleApplet
Modifier and Type | Field and Description |
---|---|
protected FieldI |
baseField
Base field, does not normally include boolean and string operations
|
protected java.text.DecimalFormat |
decimalFormat |
protected FieldCollection |
fields
Set of fields with boolean and possibly string support
|
protected FunctionTable |
funTab |
protected java.math.MathContext |
mc |
protected NumberFactory |
numf |
protected OperatorTable2 |
opTab |
protected FieldConsole.Type |
type |
protected VariableFactory |
varFac |
protected VariableTable |
varTab |
doubleFormat, history, jep, showHistory, ta
Constructor and Description |
---|
FieldConsole() |
Modifier and Type | Method and Description |
---|---|
protected void |
initBigDec() |
protected void |
initBigInt() |
protected void |
initComplex() |
protected void |
initDouble()
Initialisation for each field.
|
protected void |
initExactInteger() |
void |
initialise()
sets up all the needed objects.
|
protected void |
initInteger() |
protected void |
initMixed() |
protected void |
initRational() |
protected void |
initStandard() |
static void |
main(java.lang.String[] args)
Creates a new Console object and calls run()
|
void |
printHelp()
Print help message.
|
void |
setFormat(int maxDigits) |
Console.SPEC_ACTION |
testSpecialCommands(java.lang.String command)
Checks for special commands.
|
java.lang.String |
toString(java.lang.Object o)
Return string representation of object.
|
getAppletInfo, getCommand, getPrompt, handleError, init, inputLoop, keyPressed, keyReleased, keyTyped, print, printFuns, printIntroText, println, printOps, printStdHelp, printVars, processCommand, processEquation, run, setAlteredCommand, setFormat, split
destroy, getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected FieldConsole.Type type
protected java.math.MathContext mc
protected NumberFactory numf
protected OperatorTable2 opTab
protected VariableFactory varFac
protected VariableTable varTab
protected FunctionTable funTab
protected FieldI baseField
protected FieldCollection fields
protected java.text.DecimalFormat decimalFormat
public void initialise()
Console
initialise
in class Console
protected void initDouble()
protected void initStandard()
protected void initBigDec()
protected void initBigInt()
protected void initMixed()
protected void initInteger()
protected void initExactInteger()
protected void initRational()
protected void initComplex()
public Console.SPEC_ACTION testSpecialCommands(java.lang.String command)
Console
verbose onThis method can be used detected this input, perform required actions and skip normal processing by returning true. In general sub classes should call the superclass methods to test for special commands that class implements
testSpecialCommands
in class Console
Console.split(String)
public java.lang.String toString(java.lang.Object o)
Console
public void printHelp()
Console
public void setFormat(int maxDigits)
public static void main(java.lang.String[] args)
Copyright © 2018 Singular Systems http://www.singularsys.com/jep