|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cle.process.Process
The abstract superclass of all CLE Processes, DisplayGroups and Service . Anything that is executable in a Service.
Changed the start method to handle the standard process of:
1.Gathering the paramaters
2.Start the statemachine
3.Process the results
Field Summary | |
protected TransitionCondition |
condition
The TransitionCondition that is curently set to be returned by this State. |
protected boolean |
DEBUG
Set this to true to get diagnostic remarks |
protected boolean |
endState
|
static java.lang.String |
FAILURE
Constant for a failure condition - Defect # 1575345 |
protected java.lang.String |
name
A hopefully unique name given to this process |
protected java.util.Vector |
processes
A list containing all of this process' child processes ie: Services would contain DisplayGroups, DisplayGroups would contain Processes, Processes would contain ??? Anything ??? |
protected Service |
service
The Service that contains this Process. |
protected StateMachine |
stateMachine
A statemachine object |
static java.lang.String |
SUCCESS
Constant for a success condition - Defect # 1575345 |
static TransitionCondition |
TRANSITION_CONDITION_FAILURE
Constant for success transition condition - Bug 2426904 |
static TransitionCondition |
TRANSITION_CONDITION_SUCCESS
Constant for success transition condition - Bug 2426904 |
Constructor Summary | |
Process()
Construct this Process Cand create the two default conditions: "success" and "failure". |
|
Process(Service aService)
Construct this Process |
Method Summary | |
void |
addCondition(TransitionCondition aTransitionCondition)
Add a TransitionCondition to the set of possible conditions for this state. |
void |
addProcess(Child aChild)
Adds a Process to the "processes" list Vector. |
java.lang.Object |
clone()
|
void |
cloneProcess(Process p)
This method must be implemented by all Process subclasses which can have different representations like Evaluator. |
void |
debug(java.lang.String text)
a simple way to print some debug messages out |
TransitionCondition |
generateFailureCondition()
Returns a TransitionCondition with a negative int |
TransitionCondition |
generateSuccessCondition()
Returns a TransitionCondition with a positive int or zero |
protected java.lang.String |
getClassname()
|
TransitionCondition |
getCondition(java.lang.String key)
Returns a TransitionCondition for the specified key |
java.util.Vector |
getConditions()
Return a Vector of the possible TransitionConditions that are available for this State. |
java.lang.String |
getIconName()
Returns a static String that tells us the location of the icon representing this Process. |
java.lang.String |
getImageName()
Returns a static String that tells us the location of the image representing this Process. |
java.lang.String |
getName()
Returns a the name of this Process. |
java.util.Vector |
getProcesses()
Access method for the processes attribute |
Process |
getProcessNamed(java.lang.String aProcessName)
Goes through the processes Vector and returns the Process whose name matches the specified string. |
StateMachine |
getStateMachine()
|
int |
hashCode()
|
boolean |
isEndState()
Returns true if this is an end State... |
void |
removeCondition(java.lang.String aConditionString)
Add a TransitionCondition to the set of possible conditions for this state. |
void |
removeCondition(TransitionCondition aTransitionCondition)
Remove a TransitionCondition from the set of possible conditions for this state. |
void |
reportException(java.lang.Exception anException,
boolean trace)
A simple way to print out Exception messages If trace is "true", then the stack trace is printed. |
TransitionCondition |
returnCondition()
Returns the transition condition for this State |
void |
setCondition(java.lang.String aCondition)
Sets the condition attribute. |
void |
setCondition(TransitionCondition aCondition)
Sets the condition attribute to the parameter passed in |
void |
setEndState(boolean aBoolean)
|
void |
setName(java.lang.String newName)
|
void |
setService(Service service)
|
void |
start()
Everything starts here, for the execution of a Process. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.cle.process.Child |
getParameters, getParent, getParents, getResults, setParent |
Field Detail |
public static final java.lang.String SUCCESS
public static final java.lang.String FAILURE
public static final TransitionCondition TRANSITION_CONDITION_SUCCESS
public static final TransitionCondition TRANSITION_CONDITION_FAILURE
protected java.lang.String name
protected StateMachine stateMachine
protected Service service
protected boolean endState
protected TransitionCondition condition
protected java.util.Vector processes
protected boolean DEBUG
Constructor Detail |
public Process()
public Process(Service aService)
Method Detail |
public void start() throws TransitionConditionException
start
in interface State
public void setService(Service service)
public java.util.Vector getProcesses()
public StateMachine getStateMachine()
public void cloneProcess(Process p)
public java.lang.String getName()
getName
in interface State
public void setName(java.lang.String newName)
public void addProcess(Child aChild) throws CLEException
public Process getProcessNamed(java.lang.String aProcessName)
public TransitionCondition generateSuccessCondition()
generateSuccessCondition
in interface State
public TransitionCondition generateFailureCondition()
generateFailureCondition
in interface State
public void addCondition(TransitionCondition aTransitionCondition)
addCondition
in interface State
oracle.cle.util.statemachine.State
StateMachine
public void removeCondition(java.lang.String aConditionString)
TransitionTable
,
StateMachine
public void removeCondition(TransitionCondition aTransitionCondition)
removeCondition
in interface State
TransitionTable
,
StateMachine
public java.util.Vector getConditions()
getConditions
in interface State
public TransitionCondition getCondition(java.lang.String key)
State
getCondition
in interface State
public void setCondition(java.lang.String aCondition) throws TransitionConditionException
setCondition
in interface State
getCondition(String)
public void setCondition(TransitionCondition aCondition) throws TransitionConditionException
setCondition
in interface State
public TransitionCondition returnCondition()
State
returnCondition
in interface State
public void setEndState(boolean aBoolean)
public boolean isEndState()
State
isEndState
in interface State
public java.lang.String getIconName()
public java.lang.String getImageName()
public java.lang.String toString()
toString
in class java.lang.Object
protected final java.lang.String getClassname()
public final void reportException(java.lang.Exception anException, boolean trace) throws CLERuntimeException
public void debug(java.lang.String text)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |