org.ow2.bonita.pvm.internal.model
Class TransitionImpl

java.lang.Object
  extended by org.ow2.bonita.pvm.internal.model.ProcessElementImpl
      extended by org.ow2.bonita.pvm.internal.model.ObservableElementImpl
          extended by org.ow2.bonita.pvm.internal.model.TransitionImpl
All Implemented Interfaces:
java.io.Serializable, ObservableElement, Transition
Direct Known Subclasses:
ProcessModificationsImpl.AddedTransition

public class TransitionImpl
extends ObservableElementImpl
implements Transition

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  Descriptor conditionDescriptor
           
protected  NodeImpl destination
           
protected  boolean isTakeAsync
           
protected  NodeImpl source
           
protected  Descriptor waitConditionDescriptor
           
 
Fields inherited from class org.ow2.bonita.pvm.internal.model.ObservableElementImpl
description, events, name
 
Fields inherited from class org.ow2.bonita.pvm.internal.model.ProcessElementImpl
dbid, dbversion, exceptionHandlers, processDefinition, properties
 
Method Summary
 EventImpl createEvent()
           
 Condition getCondition()
          the general purpose condition that can be used in various ways by the activities.
 Descriptor getConditionDescriptor()
          see Conditions
 NodeImpl getDestination()
          the node in which this transition arrives.
 EventImpl getEvent()
           
 ObservableElementImpl getParent()
          the first common parent between the source and the destination node.
 NodeImpl getSource()
          the node from which this transition leaves.
 Condition getWaitCondition()
           
 Descriptor getWaitConditionDescriptor()
          see Wait conditions
 boolean isTakeAsync()
           
 void makeDefault()
           
 void setConditionDescriptor(Descriptor conditionDescriptor)
          see Conditions
 void setDestination(NodeImpl destination)
           
 void setName(java.lang.String name)
           
 void setSource(NodeImpl source)
           
 void setTakeAsync(boolean isTakeAsync)
           
 void setWaitConditionDescriptor(Descriptor waitConditionDescriptor)
          see Wait conditions
 java.lang.String toString()
           
 
Methods inherited from class org.ow2.bonita.pvm.internal.model.ObservableElementImpl
addEvent, createEvent, getDescription, getEvent, getEvents, getName, hasEvent, setDescription, setEvents
 
Methods inherited from class org.ow2.bonita.pvm.internal.model.ProcessElementImpl
addExceptionHandler, addProperty, createExceptionHandler, getDbid, getExceptionHandlers, getProcessDefinition, getProperties, getProperty, getPropertyKeys, setExceptionHandlers, setProcessDefinition, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.bonita.pvm.model.ObservableElement
getDbid, getName, getProcessDefinition, getProperty, getPropertyKeys, hasEvent
 

Field Detail

source

protected NodeImpl source

destination

protected NodeImpl destination

conditionDescriptor

protected Descriptor conditionDescriptor

waitConditionDescriptor

protected Descriptor waitConditionDescriptor

isTakeAsync

protected boolean isTakeAsync
Method Detail

makeDefault

public void makeDefault()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

createEvent

public EventImpl createEvent()

getParent

public ObservableElementImpl getParent()
the first common parent between the source and the destination node. The source and destination itself are included in the search except if source and destination are equal. In that case (self-transition), then it's the parent of the node.

Specified by:
getParent in interface ObservableElement
Overrides:
getParent in class ObservableElementImpl

setName

public void setName(java.lang.String name)
Overrides:
setName in class ObservableElementImpl

getCondition

public Condition getCondition()
Description copied from interface: Transition
the general purpose condition that can be used in various ways by the activities.

Specified by:
getCondition in interface Transition

getWaitCondition

public Condition getWaitCondition()

getEvent

public EventImpl getEvent()

getSource

public NodeImpl getSource()
Description copied from interface: Transition
the node from which this transition leaves.

Specified by:
getSource in interface Transition

setSource

public void setSource(NodeImpl source)

getDestination

public NodeImpl getDestination()
Description copied from interface: Transition
the node in which this transition arrives.

Specified by:
getDestination in interface Transition

setDestination

public void setDestination(NodeImpl destination)

getConditionDescriptor

public Descriptor getConditionDescriptor()
see Conditions


setConditionDescriptor

public void setConditionDescriptor(Descriptor conditionDescriptor)
see Conditions


getWaitConditionDescriptor

public Descriptor getWaitConditionDescriptor()
see Wait conditions


setWaitConditionDescriptor

public void setWaitConditionDescriptor(Descriptor waitConditionDescriptor)
see Wait conditions


isTakeAsync

public boolean isTakeAsync()

setTakeAsync

public void setTakeAsync(boolean isTakeAsync)


Copyright © 2009 OW2 Consortium. All Rights Reserved.