+
+ /**
+ * Sets the start event occurrence attached to this graphNode.
+ *
+ * @param occurence
+ * the start event occurrence attached to the graphNode
+ * @since 2.0
+ */
+ protected void setStartOccurrence(int occurence) {
+ fStartEventOccurrence = occurence;
+ }
+
+ /**
+ * Sets the end event occurrence attached to this graphNode
+ *
+ * @param occurence
+ * the start event occurrence attached to the graphNode
+ * @since 2.0
+ */
+ protected void setEndOccurrence(int occurence) {
+ fEndEventOccurrence = occurence;
+ }
+
+ /**
+ * Sets the color preference id
+ * @param id
+ * The color preference id
+ * @since 2.0
+ */
+ protected void setColorPrefId(String id) {
+ fPrefId = id;
+ }
+
+ /**
+ * Gets the color preference id
+ * @return the color preference id
+ * @since 2.0
+ */
+ protected String getColorPrefId() {
+ return fPrefId;
+ }
+
+ /**
+ * @return if node has children or not
+ * @since 2.0
+ */
+ protected boolean hasChildren() {
+ return fHasChilden;
+ }
+
+ /**
+ * Sets the flag indicating where the node has children or not.
+ * @param hasChildren
+ * if node has children or not
+ * @since 2.0
+ */
+ protected void hasChildren(boolean hasChildren) {
+ fHasChilden = hasChildren;
+ }
+ /**
+ * Returns a map from node name to graph node.
+ *
+ * @return map with children graph bodes
+ * @since 2.0
+ */
+ protected Map<String, List<GraphNode>> getNodeMap() {
+ return fNodes;
+ }
+ /**
+ * Returns a map from node name to graph node for forward sorting
+ *
+ * @return forward sorting map
+ * @since 2.0
+ */
+ protected Map<String, List<GraphNode>> getForwardNodes() {
+ return fForwardNodes;
+ }
+ /**
+ * Returns a map from node name to graph node for backwards sorting.
+ *
+ * @return backwards sorting map
+ * @since 2.0
+ */
+ protected Map<String, List<GraphNode>> getBackwardNodes() {
+ return fBackwardNodes;
+ }
+ /**
+ * Returns a map from node name to index.
+ *
+ * @return map with node name to index
+ * @since 2.0
+ */
+ protected Map<String, Integer> getIndexes() {
+ return fIndexes;
+ }
+
+ /**
+ * Returns a map from node name to sort flag for forwards sorting.
+ * @return a map from node name to sort flag
+ * @since 2.0
+ */
+ protected Map<String, Boolean> getForwardSortMap() {
+ return fForwardSort;
+ }
+ /**
+ * Returns a map from node name to flag for backwards sorting.
+ * @return map from node name to flag for backwards sorting.
+ * @since 2.0
+ */
+ protected Map<String, Boolean> getBackwardSortMap() {
+ return fBackwardSort;
+ }