PPL Java Language Interface  1.2
Linear_Expression_Times.java
Go to the documentation of this file.
1 /* Linear_Expression_Times class definition and implementation.
2  Copyright (C) 2001-2010 Roberto Bagnara <bagnara@cs.unipr.it>
3  Copyright (C) 2010-2016 BUGSENG srl (http://bugseng.com)
4 
5 This file is part of the Parma Polyhedra Library (PPL).
6 
7 The PPL is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 The PPL is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software Foundation,
19 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA.
20 
21 For the most up-to-date information see the Parma Polyhedra Library
22 site: http://bugseng.com/products/ppl/ . */
23 
24 package parma_polyhedra_library;
25 
27 
29  extends Linear_Expression {
30 
32  protected Coefficient coeff;
33 
36 
39  coeff = new Coefficient(c);
40  lin_expr = new Linear_Expression_Variable(v);
41  }
42 
45  coeff = new Coefficient(c);
46  lin_expr = l.clone();
47  }
48 
51  coeff = new Coefficient(c);
52  lin_expr = l.clone();
53  }
54 
57  return coeff;
58  }
59 
62  return lin_expr;
63  }
64 
67  return new Linear_Expression_Times(coeff, lin_expr);
68  }
69 
70  private static native void initIDs();
71  static {
72  initIDs();
73  }
74 }
Linear_Expression lin_expr
The value of the inner linear expression.
Linear_Expression_Times(Linear_Expression l, Coefficient c)
Builds an object cloning the input arguments.
Linear_Expression linear_expression()
Returns the linear expression subobject of this.
abstract Linear_Expression clone()
Returns a copy of the linear expression.
Coefficient coeff
The value of the coefficient.
Coefficient coefficient()
Returns the coefficient of this.
Linear_Expression_Times(Coefficient c, Variable v)
Builds an object cloning the input arguments.
A dimension of the vector space.
Definition: Variable.java:38
Linear_Expression_Times clone()
Builds a copy of this.
The product of a linear expression and a coefficient.
PPL_COEFFICIENT_TYPE Coefficient
Linear_Expression_Times(Coefficient c, Linear_Expression l)
Builds an object cloning the input arguments.