Package edu.jas.root
Class Boundary<C extends RingElem<C> & Rational>
- java.lang.Object
-
- edu.jas.root.Boundary<C>
-
- Type Parameters:
C
- coefficient type.
- All Implemented Interfaces:
java.io.Serializable
public class Boundary<C extends RingElem<C> & Rational> extends java.lang.Object implements java.io.Serializable
Boundary determined by a rectangle and a polynomial. For a given complex polynomial A a closed path through the corners of the given rectangle is constructed. The path is represented by four polynomials, one for each side of the rectangle. For a real t in [0,1] the i-th polynomial describes the path of A from corner[i] to corner[i+1]. In particular polys[i](0) = A(corner[i]) and polys[i](1) = A(corner[i+1]), with corner[4] = corner[0]. If A would be zero on a point of the path, an InvalidBoundaryException is thrown.- Author:
- Heinz Kredel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description Boundary(Rectangle<C> r, GenPolynomial<Complex<C>> p)
Constructor.protected
Boundary(Rectangle<C> r, GenPolynomial<Complex<C>> p, GenPolynomial<Complex<C>>[] b)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boundary<C>
copy()
Copy this.boolean
equals(java.lang.Object b)
Comparison with any other object.GenPolynomial<C>
getImagPart(int i)
Get imaginary part for polynomial i.GenPolynomial<C>
getRealPart(int i)
Get real part for polynomial i.int
hashCode()
Hash code for this Rectangle.java.lang.String
toScript()
Get a scripting compatible string representation.java.lang.String
toString()
String representation of Boundary.
-
-
-
Constructor Detail
-
Boundary
public Boundary(Rectangle<C> r, GenPolynomial<Complex<C>> p) throws InvalidBoundaryException
Constructor.- Parameters:
r
- rectangle of of corners.p
- non constant polynomial.- Throws:
InvalidBoundaryException
-
Boundary
protected Boundary(Rectangle<C> r, GenPolynomial<Complex<C>> p, GenPolynomial<Complex<C>>[] b)
Constructor.- Parameters:
r
- rectangle of of corners.p
- polynomial.b
- boundary polynomials.
-
-
Method Detail
-
toString
public java.lang.String toString()
String representation of Boundary.- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
toScript
public java.lang.String toScript()
Get a scripting compatible string representation.- Returns:
- script compatible representation for this Boundary.
-
getRealPart
public GenPolynomial<C> getRealPart(int i)
Get real part for polynomial i.- Parameters:
i
- index of polynomial.- Returns:
- real part for polynomial i.
-
getImagPart
public GenPolynomial<C> getImagPart(int i)
Get imaginary part for polynomial i.- Parameters:
i
- index of polynomial.- Returns:
- imaginary part for polynomial i.
-
equals
public boolean equals(java.lang.Object b)
Comparison with any other object.- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
Hash code for this Rectangle.- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
-