12
12
import java .util .Set ;
13
13
14
14
import android .util .SparseIntArray ;
15
- import fr .lip6 .move .gal .util .MatrixCol ;
15
+ import fr .lip6 .move .gal .util .IntMatrixCol ;
16
16
17
17
public class FlowPrinter {
18
18
@@ -31,10 +31,10 @@ public static String drawNet (StructuralReduction sr, String title, Set<Integer>
31
31
return drawNet (sr , title , hlPlaces , hlTrans , 200 );
32
32
}
33
33
public static String drawNet (StructuralReduction sr , String title , Set <Integer > hlPlaces , Set <Integer > hlTrans , int maxShown ) {
34
- return drawNet (sr .getFlowPT (),sr .getFlowTP (),sr .getMarks (),sr .getPnames (),sr .getTnames (), sr .getUntouchable (), "places: " +sr .getPnames ().size () + " trans:" + sr .getTnames ().size ()+ " " + title , hlPlaces , hlTrans , maxShown );
34
+ return drawNet (sr .getFlowPT (),sr .getFlowTP (),sr .getMarks (),sr .getPnames (),sr .getTnames (), sr .computeSupport (), "places: " +sr .getPnames ().size () + " trans:" + sr .getTnames ().size ()+ " " + title , hlPlaces , hlTrans , maxShown );
35
35
}
36
36
37
- public static String drawNet (MatrixCol flowPT , MatrixCol flowTP , List <Integer > marks , List <String > pnames , List <String > tnames , BitSet untouchable , String title , Set <Integer > hlPlaces , Set <Integer > hlTrans , int maxShown ) {
37
+ public static String drawNet (IntMatrixCol flowPT , IntMatrixCol flowTP , List <Integer > marks , List <String > pnames , List <String > tnames , BitSet untouchable , String title , Set <Integer > hlPlaces , Set <Integer > hlTrans , int maxShown ) {
38
38
try {
39
39
Path out = Files .createTempFile ("petri" +nbWritten ++ +"_" , ".dot" );
40
40
PrintWriter pw = new PrintWriter (out .toFile ());
@@ -46,8 +46,8 @@ public static String drawNet (MatrixCol flowPT, MatrixCol flowTP, List<Integer>
46
46
Set <Integer > torep = new HashSet <>();
47
47
Set <Integer > toret = new HashSet <>();
48
48
49
- MatrixCol tflowPT = null ;
50
- MatrixCol tflowTP = null ;
49
+ IntMatrixCol tflowPT = null ;
50
+ IntMatrixCol tflowTP = null ;
51
51
52
52
if (pnames .size () + tnames .size () > 2 *maxShown ) {
53
53
isLarge = true ;
@@ -190,7 +190,7 @@ public static String drawNet (MatrixCol flowPT, MatrixCol flowTP, List<Integer>
190
190
return null ;
191
191
}
192
192
193
- private static void addNeighborhood (int ti , MatrixCol flowPT , MatrixCol flowTP , Set <Integer > torep ,
193
+ private static void addNeighborhood (int ti , IntMatrixCol flowPT , IntMatrixCol flowTP , Set <Integer > torep ,
194
194
Set <Integer > toret ) {
195
195
toret .add (ti );
196
196
SparseIntArray col = flowPT .getColumn (ti );
0 commit comments