00001 /* Congruence Java class declaration and implementation. 00002 Copyright (C) 2001-2010 Roberto Bagnara <bagnara@cs.unipr.it> 00003 Copyright (C) 2010-2011 BUGSENG srl (http://bugseng.com) 00004 00005 This file is part of the Parma Polyhedra Library (PPL). 00006 00007 The PPL is free software; you can redistribute it and/or modify it 00008 under the terms of the GNU General Public License as published by the 00009 Free Software Foundation; either version 3 of the License, or (at your 00010 option) any later version. 00011 00012 The PPL is distributed in the hope that it will be useful, but WITHOUT 00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00014 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00015 for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software Foundation, 00019 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA. 00020 00021 For the most up-to-date information see the Parma Polyhedra Library 00022 site: http://www.cs.unipr.it/ppl/ . */ 00023 00024 package parma_polyhedra_library; 00025 00026 import java.io.Writer; 00027 import java.io.IOException; 00028 00030 00042 public class Congruence { 00043 00045 protected Coefficient mod; 00046 00048 Linear_Expression lhs; 00049 00051 Linear_Expression rhs; 00052 00057 public Congruence(Linear_Expression e1, Linear_Expression e2, 00058 Coefficient m) { 00059 mod = new Coefficient(m); 00060 lhs = e1.clone(); 00061 rhs = e2.clone(); 00062 } 00063 00065 public Linear_Expression left_hand_side() { 00066 return lhs; 00067 } 00068 00070 public Linear_Expression right_hand_side() { 00071 return rhs; 00072 } 00073 00075 public Coefficient modulus() { 00076 return mod; 00077 } 00078 00080 public native String ascii_dump(); 00081 00083 public native String toString(); 00084 00085 private static native void initIDs(); 00086 static { 00087 initIDs(); 00088 } 00089 }
1.6.3