Uses of Interface
calculator.atoms.Atom
Packages that use Atom
Package
Description
-
Uses of Atom in calculator
Methods in calculator that return AtomModifier and TypeMethodDescriptionCalculator.eval(Expression e) Evaluates an arithmetic expression and returns its result -
Uses of Atom in calculator.atoms
Classes in calculator.atoms that implement AtomModifier and TypeClassDescriptionclassComplex Number type is used to represent complex e.g. 3 + 2iclassIntegerAtom is a concrete class that represents arithmetic (integer) numbers, which are Atoms, a special kind of Expressions, just like operations are.classRationnal Number type is used to represent fractions e.g. 1/2classReal is a concrete class that represents arithmetic (Real) numbers, which are Atoms, a special kind of Expressions.Methods in calculator.atoms that return AtomModifier and TypeMethodDescriptionAtom.apply(BinaryFunction f, Atom a) Applies an Binary between two atoms of the same concrete type The function supposes that both atoms are of the same concrete typeAtom.apply(UnaryFunction o) Applies an operation on the atomApplies an operation between two atoms of the same concrete type The function supposes that both atoms are of the same concrete typeComplex.apply(BinaryFunction f, Atom a) IntegerAtom.apply(BinaryFunction f, Atom a) applies an operation between two IntegerAtomRationnal.apply(BinaryFunction f, Atom a) Real.apply(BinaryFunction f, Atom a) Methods in calculator.atoms with parameters of type AtomModifier and TypeMethodDescriptionAtom.apply(BinaryFunction f, Atom a) Applies an Binary between two atoms of the same concrete type The function supposes that both atoms are of the same concrete typeApplies an operation between two atoms of the same concrete type The function supposes that both atoms are of the same concrete typeComplex.apply(BinaryFunction f, Atom a) IntegerAtom.apply(BinaryFunction f, Atom a) applies an operation between two IntegerAtomRationnal.apply(BinaryFunction f, Atom a) Real.apply(BinaryFunction f, Atom a) applies an operation between two Reals -
Uses of Atom in calculator.atoms.visitor
Methods in calculator.atoms.visitor that return Atom -
Uses of Atom in calculator.functions
Methods in calculator.functions that return AtomModifier and TypeMethodDescriptionabstract AtomAbstract method representing the actual function result of two complexesabstract AtomBinaryFunction.op(IntegerAtom i1, IntegerAtom i2) Abstract method representing the actual function result of two integersabstract AtomAbstract method representing the actual function result of two Rationnalsabstract AtomAbstract method representing the actual function result of two reals -
Uses of Atom in calculator.operations
Methods in calculator.operations that return AtomModifier and TypeMethodDescriptionabstract AtomOperation.op(IntegerAtom i1, IntegerAtom i2) Abstract method representing the actual binary arithmetic operation to compute on Integerabstract AtomAbstract method representing the actual binary arithmetic operation to compute on Rationnals -
Uses of Atom in visitor