PPL Java Language Interface 2.0
parma_polyhedra_library.Coefficient Class Reference

A PPL coefficient. More...

Public Member Functions

 Coefficient (int i)
 Builds a coefficient valued i.
 Coefficient (long l)
 Builds a coefficient valued l.
 Coefficient (BigInteger bi)
 Builds a coefficient valued bi.
 Coefficient (String s)
 Builds a coefficient from the decimal representation in s.
 Coefficient (Coefficient c)
 Builds a copy of c.
String toString ()
 Returns a String representation of this.
BigInteger getBigInteger ()
 Returns the value held by this.

Static Public Member Functions

static native int bits ()
 Returns the number of bits of PPL coefficients; 0 if unbounded.

Detailed Description

A PPL coefficient.

Objects of type Coefficient are used to implement the integral valued coefficients occurring in linear expressions, constraints, generators and so on.

Constructor & Destructor Documentation

◆ Coefficient() [1/5]

parma_polyhedra_library.Coefficient.Coefficient ( int i)
inline

Builds a coefficient valued i.

Parameters
iThe index of the selected element or space dimension.

◆ Coefficient() [2/5]

parma_polyhedra_library.Coefficient.Coefficient ( long l)
inline

Builds a coefficient valued l.

Parameters
lThe source integer or linear expression to copy.

◆ Coefficient() [3/5]

parma_polyhedra_library.Coefficient.Coefficient ( BigInteger bi)
inline

Builds a coefficient valued bi.

Parameters
biThe arbitrary-precision integer value to copy.

◆ Coefficient() [4/5]

parma_polyhedra_library.Coefficient.Coefficient ( String s)
inline

Builds a coefficient from the decimal representation in s.

Exceptions
java.lang.NumberFormatExceptionThrown if s does not contain a valid decimal representation.
Parameters
sThe textual integer value to parse.

◆ Coefficient() [5/5]

parma_polyhedra_library.Coefficient.Coefficient ( Coefficient c)
inline

Builds a copy of c.

Parameters
cThe source coefficient used to construct the object.

Member Function Documentation

◆ toString()

String parma_polyhedra_library.Coefficient.toString ( )
inline

Returns a String representation of this.

Returns
A String representation of this.

◆ getBigInteger()

BigInteger parma_polyhedra_library.Coefficient.getBigInteger ( )
inline

Returns the value held by this.

Returns
The value held by this.

◆ bits()

native int parma_polyhedra_library.Coefficient.bits ( )
static

Returns the number of bits of PPL coefficients; 0 if unbounded.

Returns
The number of bits of PPL coefficients; 0 if unbounded.

The documentation for this class was generated from the following file:
  • Coefficient.java