pipe.modules.classification
Class Classification
java.lang.Object
|
+--pipe.modules.classification.Classification
- All Implemented Interfaces:
- Module
- public class Classification
- extends java.lang.Object
- implements Module
Method Summary |
private int[] |
backwardsPlaceSet(int PlaceNo)
|
(package private) int |
binarySearch(int value,
int[] array,
int first,
int last)
|
static int |
cardinality(int[] X)
|
private void |
classifyPetriNets()
|
private void |
displayResults()
|
private boolean |
extendedFreeChoiceNet(DataLayer pnmlData)
|
private boolean |
extendedSimpleNet(DataLayer pnmlData)
|
static boolean |
findSubset(int[] A,
int[] B)
|
private int[] |
forwardsPlaceSet(int PlaceNo)
|
private boolean |
freeChoiceNet(DataLayer pnmlData)
|
java.lang.String |
getName()
|
private void |
initGuiFrame()
|
static boolean |
isSubset(int[] A,
int[] B)
|
private boolean |
isSubSetRelationship(int[] setOne,
int[] setTwo)
|
private boolean |
markedGraph(DataLayer pnmlData)
|
(package private) void |
quickSort(int[] array,
int first,
int last)
|
static int[] |
reduce(int[] X)
|
void |
run(DataLayer pnmlData)
|
(package private) int |
search(int value,
int[] array)
|
private void |
setUpPetriNetPanel(javax.swing.JPanel panel)
|
private void |
setUpResultsPanel()
|
private boolean |
simpleNet(DataLayer pnmlData)
|
private boolean |
stateMachine(DataLayer pnmlData)
|
private int |
sumPlaceBackwards(int PlaceNo)
|
private int |
sumPlaceForwards(int PlaceNo)
|
private int |
sumTransitionBackwards(int TransitionNo)
|
private int |
sumTransitionForwards(int TransitionNo)
|
private boolean |
unionBetweenSets(int[] setOne,
int[] setTwo)
|
private void |
warnUser(java.lang.String message,
javax.swing.JFrame frame)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
MODULE_NAME
private static final java.lang.String MODULE_NAME
guiFrame
private javax.swing.JFrame guiFrame
mainToolKit
private final java.awt.Toolkit mainToolKit
windowSize
private final java.awt.Dimension windowSize
center
private final java.awt.Point center
windowWidth
private final int windowWidth
windowHeight
private final int windowHeight
windowTopLeftCornerX
private final int windowTopLeftCornerX
windowTopLeftCornerY
private final int windowTopLeftCornerY
codeEditorPane
private javax.swing.JEditorPane codeEditorPane
codeScrollPane
private javax.swing.JScrollPane codeScrollPane
consoleEditorPane
private javax.swing.JEditorPane consoleEditorPane
consoleScrollPane
private javax.swing.JScrollPane consoleScrollPane
projectScrollPane
private javax.swing.JScrollPane projectScrollPane
classScrollPane
private javax.swing.JScrollPane classScrollPane
guiResultsPanel
private javax.swing.JPanel guiResultsPanel
mainPanel
private javax.swing.JPanel mainPanel
gridbag
private java.awt.GridBagLayout gridbag
gridbagConstraints
private java.awt.GridBagConstraints gridbagConstraints
TEXT_FIELD_SIZE
private final int TEXT_FIELD_SIZE
sourceTextField
private javax.swing.JTextField sourceTextField
sourceButton
private javax.swing.JButton sourceButton
sourceLabel
private javax.swing.JLabel sourceLabel
defaultLabel
private final java.awt.Font defaultLabel
smallDefaultLabel
private final java.awt.Font smallDefaultLabel
sourcedataLayer
private DataLayer sourcedataLayer
refdataLayer
private DataLayer refdataLayer
outputHTML
private java.io.File outputHTML
outputWriter
private java.io.FileWriter outputWriter
spacing
private java.awt.Insets spacing
sourceCheckBox
private javax.swing.JCheckBox sourceCheckBox
placeCheckBox
private javax.swing.JCheckBox placeCheckBox
placeIdCheckBox
private javax.swing.JCheckBox placeIdCheckBox
placeNameCheckBox
private javax.swing.JCheckBox placeNameCheckBox
placeMarkupCheckBox
private javax.swing.JCheckBox placeMarkupCheckBox
placePositionCheckBox
private javax.swing.JCheckBox placePositionCheckBox
transitionCheckBox
private javax.swing.JCheckBox transitionCheckBox
transitionIdCheckBox
private javax.swing.JCheckBox transitionIdCheckBox
transitionNameCheckBox
private javax.swing.JCheckBox transitionNameCheckBox
transitionPositionCheckBox
private javax.swing.JCheckBox transitionPositionCheckBox
arcCheckBox
private javax.swing.JCheckBox arcCheckBox
arcSourceCheckBox
private javax.swing.JCheckBox arcSourceCheckBox
arcTargetCheckBox
private javax.swing.JCheckBox arcTargetCheckBox
arcStartCheckBox
private javax.swing.JCheckBox arcStartCheckBox
arcEndCheckBox
private javax.swing.JCheckBox arcEndCheckBox
NO_ACTION
static final int NO_ACTION
CURRENT_NET
static final int CURRENT_NET
SOURCE_BROWSE
static final int SOURCE_BROWSE
COMPARISON_BROWSE
static final int COMPARISON_BROWSE
CLASSIFY
static final int CLASSIFY
Classification
public Classification(DataLayer pnmlData)
Classification
public Classification()
run
public void run(DataLayer pnmlData)
- Specified by:
run
in interface Module
getName
public java.lang.String getName()
- Specified by:
getName
in interface Module
initGuiFrame
private void initGuiFrame()
throws java.lang.Exception
setUpPetriNetPanel
private void setUpPetriNetPanel(javax.swing.JPanel panel)
setUpResultsPanel
private void setUpResultsPanel()
throws java.io.IOException
warnUser
private void warnUser(java.lang.String message,
javax.swing.JFrame frame)
classifyPetriNets
private void classifyPetriNets()
throws java.io.IOException
displayResults
private void displayResults()
throws java.io.IOException
stateMachine
private boolean stateMachine(DataLayer pnmlData)
markedGraph
private boolean markedGraph(DataLayer pnmlData)
freeChoiceNet
private boolean freeChoiceNet(DataLayer pnmlData)
extendedFreeChoiceNet
private boolean extendedFreeChoiceNet(DataLayer pnmlData)
simpleNet
private boolean simpleNet(DataLayer pnmlData)
extendedSimpleNet
private boolean extendedSimpleNet(DataLayer pnmlData)
sumPlaceBackwards
private int sumPlaceBackwards(int PlaceNo)
sumPlaceForwards
private int sumPlaceForwards(int PlaceNo)
sumTransitionBackwards
private int sumTransitionBackwards(int TransitionNo)
sumTransitionForwards
private int sumTransitionForwards(int TransitionNo)
backwardsPlaceSet
private int[] backwardsPlaceSet(int PlaceNo)
forwardsPlaceSet
private int[] forwardsPlaceSet(int PlaceNo)
unionBetweenSets
private boolean unionBetweenSets(int[] setOne,
int[] setTwo)
isSubset
public static boolean isSubset(int[] A,
int[] B)
reduce
public static int[] reduce(int[] X)
cardinality
public static int cardinality(int[] X)
findSubset
public static boolean findSubset(int[] A,
int[] B)
isSubSetRelationship
private boolean isSubSetRelationship(int[] setOne,
int[] setTwo)
search
int search(int value,
int[] array)
quickSort
void quickSort(int[] array,
int first,
int last)
binarySearch
int binarySearch(int value,
int[] array,
int first,
int last)