org.obe.xpdl.model.activity
Class ActivitySet

java.lang.Object
  extended byorg.obe.util.AbstractBean
      extended byorg.obe.xpdl.model.activity.ActivitySet
All Implemented Interfaces:
java.beans.beancontext.BeanContextChild, Graph, java.io.Serializable

public final class ActivitySet
extends AbstractBean
implements Graph

A set of activities and related transitions.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static java.lang.String ACTIVITY
           
static java.lang.String ID
           
static java.lang.String TRANSITION
           
 
Constructor Summary
ActivitySet()
           
ActivitySet(java.lang.String id)
          Construct a new ActivitySet.
 
Method Summary
 void accept(PackageVisitor visitor)
           
 void add(Activity activity)
           
 void add(Transition transition)
           
 Activity[] getActivity()
          Get a list of activities in the set.
 Activity getActivity(int i)
           
 Activity getActivity(java.lang.String id)
           
 java.lang.String getId()
          Get the ID for the activity set.
 Transition[] getTransition()
          Get a list of transitions in the set.
 Transition getTransition(int i)
           
 Transition getTransition(java.lang.String id)
           
 void remove(Activity activity)
           
 void remove(Transition transition)
           
 void setActivity(Activity[] activities)
           
 void setActivity(int i, Activity activity)
           
 void setId(java.lang.String id)
          Set the activity set ID.
 void setTransition(int i, Transition transition)
           
 void setTransition(Transition[] transitions)
           
 java.lang.String toString()
           
 
Methods inherited from class org.obe.util.AbstractBean
add, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clear, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, get, get, getBeanContext, getListModel, hasChangeListeners, hasVetoListeners, remove, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, set, set, setBeanContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTIVITY

public static final java.lang.String ACTIVITY
See Also:
Constant Field Values

ID

public static final java.lang.String ID
See Also:
Constant Field Values

TRANSITION

public static final java.lang.String TRANSITION
See Also:
Constant Field Values
Constructor Detail

ActivitySet

public ActivitySet()

ActivitySet

public ActivitySet(java.lang.String id)
Construct a new ActivitySet.

Parameters:
id - The unique ID
Method Detail

accept

public void accept(PackageVisitor visitor)
Specified by:
accept in interface Graph

add

public void add(Activity activity)
         throws java.beans.PropertyVetoException
Specified by:
add in interface Graph
Throws:
java.beans.PropertyVetoException

remove

public void remove(Activity activity)
            throws java.beans.PropertyVetoException
Specified by:
remove in interface Graph
Throws:
java.beans.PropertyVetoException

getActivity

public Activity[] getActivity()
Get a list of activities in the set.

Specified by:
getActivity in interface Graph
Returns:
List of activities in the set

getActivity

public Activity getActivity(int i)
Specified by:
getActivity in interface Graph

getActivity

public Activity getActivity(java.lang.String id)
Specified by:
getActivity in interface Graph

setActivity

public void setActivity(Activity[] activities)
                 throws java.beans.PropertyVetoException
Specified by:
setActivity in interface Graph
Throws:
java.beans.PropertyVetoException

setActivity

public void setActivity(int i,
                        Activity activity)
                 throws java.beans.PropertyVetoException
Specified by:
setActivity in interface Graph
Throws:
java.beans.PropertyVetoException

getId

public java.lang.String getId()
Get the ID for the activity set.

Returns:
The activity set ID

setId

public void setId(java.lang.String id)
Set the activity set ID. The id must be unique across all activity sets in the process definition and cannot be null.

Parameters:
id - The activity set ID

add

public void add(Transition transition)
         throws java.beans.PropertyVetoException
Specified by:
add in interface Graph
Throws:
java.beans.PropertyVetoException

remove

public void remove(Transition transition)
            throws java.beans.PropertyVetoException
Specified by:
remove in interface Graph
Throws:
java.beans.PropertyVetoException

getTransition

public Transition[] getTransition()
Get a list of transitions in the set.

Specified by:
getTransition in interface Graph
Returns:
List of transitions in the set

getTransition

public Transition getTransition(int i)
Specified by:
getTransition in interface Graph

getTransition

public Transition getTransition(java.lang.String id)
Specified by:
getTransition in interface Graph

setTransition

public void setTransition(Transition[] transitions)
Specified by:
setTransition in interface Graph

setTransition

public void setTransition(int i,
                          Transition transition)
Specified by:
setTransition in interface Graph

toString

public java.lang.String toString()


SourceForge.net Logo OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.