de.upb.swt.epctools.model
Class AndConnector

java.lang.Object
  extended by de.upb.swt.epctools.model.Node
      extended by de.upb.swt.epctools.model.Item
          extended by de.upb.swt.epctools.model.CItem
              extended by de.upb.swt.epctools.model.AndConnector
All Implemented Interfaces:
ModelListener

public class AndConnector
extends CItem

This class represents an EPC and-connector


Field Summary
 
Fields inherited from class de.upb.swt.epctools.model.CItem
configurable
 
Fields inherited from class de.upb.swt.epctools.model.Item
C_WIDTH, FE_HEIGHT, FERO_WIDTH, ROC_HEIGHT
 
Fields inherited from class de.upb.swt.epctools.model.Node
m_description, m_name, part, STATE_FALSE, STATE_TRUE, STATE_UNKNOWN, TYPE_AND, TYPE_EVENT, TYPE_FUNCTION, TYPE_NONE, TYPE_OBJECT, TYPE_OR, TYPE_RANGE, TYPE_ROLE, TYPE_XOR
 
Fields inherited from interface de.upb.swt.epctools.model.tools.ModelListener
MSG_ARC_ADDED, MSG_ARC_RECONNECTED, MSG_ARC_REMOVED, MSG_BEND_POINT_CHANGE, MSG_CHANGED_ALGORITHM, MSG_CONSTRAINT_CHANGED, MSG_DESCRIPTION_CHANGED, MSG_FOLDERS_CHANGED, MSG_HIGHLIGHTING_CHANGED, MSG_IN_ARC_ADDED, MSG_IN_ARC_REMOVED, MSG_INFO_CHANGED, MSG_LOCATION_CHANGED, MSG_NAME_CHANGED, MSG_NODE_ADDED, MSG_NODE_REMOVED, MSG_OUT_ARC_ADDED, MSG_OUT_ARC_REMOVED, MSG_SIZE_CHANGED, MSG_SOURCE_CHANGED, MSG_STRUCTURE_CHANGED, MSG_TARGET_CHANGED
 
Constructor Summary
AndConnector(EPC parent_epc)
           
 
Method Summary
 void computeNextState()
          This function must be overwritten by derived classes; it computes the resulting state when process folders are processed to outgoing Arcs.
 byte isEnabled()
          This function should be overwritten by derived classes to return whether the concerned Node may process folders to the Outgoing Arcs.
 byte isInContact()
          Returns true if the Node is in a contact situation in the actual state.
 
Methods inherited from class de.upb.swt.epctools.model.CItem
isConfigurable, setConfigurable
 
Methods inherited from class de.upb.swt.epctools.model.Node
addListener, createNode, forwardMessage, getColor, getDescription, getDistantParent, getEPC, getHeight, getId, getIncomingArcs, getListeners, getMessage, getName, getOutgoingArcs, getPosX, getPosY, getType, getTypes, getTypeString, getWidth, hasLocalSemantics, isHighlighted, removeListener, sendRefreshMessage, setColor, setConstraint, setDescription, setHeight, setHighlighted, setId, setName, setPosition, setType, setWidth, simpleIsEnabled, simpleIsInContact, simpleNextStateComputation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndConnector

public AndConnector(EPC parent_epc)
Method Detail

computeNextState

public void computeNextState()
Description copied from class: Node
This function must be overwritten by derived classes; it computes the resulting state when process folders are processed to outgoing Arcs.

Overrides:
computeNextState in class Item

isEnabled

public byte isEnabled()
Description copied from class: Node
This function should be overwritten by derived classes to return whether the concerned Node may process folders to the Outgoing Arcs. The return value can be Node.STATE_TRUE or Node.STATE_FALSE, all other results mean that the state could not be computed using local information only (i.e. incoming and outgoing arcs). The computation depends on whether multiple folders on Arcs are allowed or not.

Overrides:
isEnabled in class Item

isInContact

public byte isInContact()
Description copied from class: Node
Returns true if the Node is in a contact situation in the actual state.

Overrides:
isInContact in class Item