public class ComplexVectorType extends AbstractType
Type
when a certain part of an Expression
is a ComplexVector
when evaluated.
The following list shows, what part must be a ComplexVector
so that TYPE
is used to get the appropriate
Evaluator:BinaryOperation
: the first operandUnaryOperation
: the operand (there is only one)FunctionCall
: nothing (see AbstractType
)
List
: not implemented yetSymbol
: not implemented yetModifier and Type | Field and Description |
---|---|
static ComplexVectorType |
TYPE
A
static instance of this class. |
Modifier | Constructor and Description |
---|---|
protected |
ComplexVectorType()
Creates a new
ComplexVectorType instance. |
Modifier and Type | Method and Description |
---|---|
Variable |
createVariable(String name,
Object value)
Not implemented yet.
|
boolean |
equals(Object o)
|
Evaluator |
getEvaluator(BinaryOperation expr,
Evaluator e1,
Evaluator e2)
Returns the
Evaluator for the specified
BinaryOperation which first operand is a ComplexVector
when evaluated. |
Evaluator |
getEvaluator(List expr,
Evaluator[] e)
Throws an
UnsupportedOperationException , because this method
is not implemented yet. |
Evaluator |
getEvaluator(PredefinedFunction pf,
Evaluator paramEval)
Throws an
UnsupportedOperationException , because this method
is not implemented yet. |
Evaluator |
getEvaluator(Symbol expr,
Context context)
Throws an
UnsupportedOperationException
because this method is not implemented yet. |
Evaluator |
getEvaluator(UnaryOperation expr,
Evaluator e)
Returns the
Evaluator for the specified
UnaryOperation which operand is a ComplexVector
when evaluated. |
Class |
getRepresentationClass()
Returns
ComplexVector .class . |
getEvaluator
public static final ComplexVectorType TYPE
static
instance of this class. The Constructor
of this class is protected
,
so you have to use this static
field.protected ComplexVectorType()
ComplexVectorType
instance. This constructor is
protected
because you do not need to create several
instances of this class. Use the static
field TYPE
instead.public Variable createVariable(String name, Object value)
name
- the name of the Variable
to be created.value
- the value of the Variable
to be created.Variable
.public boolean equals(Object o)
public Evaluator getEvaluator(BinaryOperation expr, Evaluator e1, Evaluator e2)
Evaluator
for the specified
BinaryOperation
which first operand is a ComplexVector
when evaluated. The returned Evaluator
must not
evaluate to a ComplexVectorType
result.expr
- the BinaryOperation
the Evaluator
is to be returned for.e1
- the Evaluator
for the first operand of the
BinaryOperation
.e2
- the Evaluator
for the second operand of the
BinaryOperation
.Evaluator
for the specified BinaryOperation.UnsupportedOperationException
- if the specified
BinaryOperation
has an unknown type (see
BinaryOperation.getType()
) or a certain binary operation
is not supported (e.g.: ComplexVector + Complex).BinaryOperation.getEvaluator(Type,Context)
,
ComplexVectorTimesComplexEvaluator
,
ComplexVectorDivideComplexEvaluator
,
ComplexVectorPlusComplexVectorEvaluator
,
ComplexVectorMinusComplexVectorEvaluator
public Evaluator getEvaluator(List expr, Evaluator[] e)
UnsupportedOperationException
, because this method
is not implemented yet.expr
- the List
the Evaluator
is to be returned for.e
- an array of all Evaluator
for the list
entries.UnsupportedOperationException
- whenever this method is called.List.getEntries()
public Evaluator getEvaluator(PredefinedFunction pf, Evaluator paramEval)
UnsupportedOperationException
, because this method
is not implemented yet.pf
- the PredefinedFunction
the Evaluator
is to be returned for.paramEval
- the Evaluator
for the
function's parameter.UnsupportedOperationException
- whenever this method is called.public Evaluator getEvaluator(Symbol expr, Context context)
UnsupportedOperationException
because this method is not implemented yet. Use RealType
or
ComplexType
as your default evaluator Type
to avoid
calling this method.expr
- the Symbol
the Evaluator
is to be returned for.context
- the Context
the Evaluator
will be got from.UnsupportedOperationException
- whenever this method is called.Context.getEvaluator(Symbol)
public Evaluator getEvaluator(UnaryOperation expr, Evaluator e)
Evaluator
for the specified
UnaryOperation
which operand is a ComplexVector
when evaluated. The returned Evaluator
will
evaluate to a ComplexVectorType
result again.expr
- the UnaryOperation
the Evaluator
is to be returned for.e
- the Evaluator
for the operand of the
UnaryOperation
.Evaluator
for the specified
UnaryOperation
.UnsupportedOperationException
- if the specified
UnaryOperation
has an unknown type (see
UnaryOperation.getType()
).UnaryOperation.getEvaluator(Type,Context)
,
PositiveSignComplexVectorEvaluator
,
NegativeSignComplexVectorEvaluator
public Class getRepresentationClass()
ComplexVector
.class
.ComplexVector.class
.