public class MGoal extends MClassBasedElement
MProcessableElement.ExcludeMode
Modifier and Type | Field and Description |
---|---|
protected MethodInfo |
buildaplmethod
The method info for building apl.
|
static java.lang.String |
CONDITION_CONTEXT
Goal context condition name.
|
static java.lang.String |
CONDITION_CREATION
Goal creation condition name.
|
static java.lang.String |
CONDITION_DROP
Goal drop condition name.
|
static java.lang.String |
CONDITION_MAINTAIN
Goal maintain condition name.
|
static java.lang.String |
CONDITION_RECUR
Goal recur condition name.
|
static java.lang.String |
CONDITION_TARGET
Goal target condition name.
|
protected java.util.Map<java.lang.String,java.util.List<MCondition>> |
conditions
The goal conditions.
|
protected MDeliberation |
deliberation
The deliberation.
|
protected java.util.Set<java.lang.String> |
excludes
The unique parameter excludes.
|
protected boolean |
metagoal
The metagoal flag.
|
protected boolean |
orsuccess
The procedual success flag.
|
protected java.lang.Object |
pojoresultreadaccess
The pojo result access (field or method).
|
protected java.lang.Object |
pojoresultwriteaccess |
protected boolean |
recur
The recur flag.
|
protected long |
recurdelay
The recur delay.
|
protected java.util.List<MParameter> |
relevants
The unique relevant attributes
|
protected boolean |
retry
The retry flag.
|
protected long |
retrydelay
The retry delay.
|
protected java.util.Map<java.lang.String,MethodInfo> |
spmappings
The goal service parameter mappings.
|
protected java.util.Map<java.lang.String,MethodInfo> |
srmappings
The goal service result mappings.
|
protected MTrigger |
trigger
The trigger (other goals) if this goal is used as plan.
|
protected boolean |
unique
The unique.
|
target, targetclass
excludemode, exported, modes, posttoall, randomselection, rebuild
parameters
CAPABILITY_SEPARATOR, description, name
Constructor and Description |
---|
MGoal()
Bean Constructor.
|
MGoal(java.lang.String name,
java.lang.String target,
boolean posttoall,
boolean rebuild,
boolean randomselection,
MProcessableElement.ExcludeMode excludemode,
boolean retry,
boolean recur,
long retrydelay,
long recurdelay,
boolean orsuccess,
boolean unique,
MDeliberation deliberation,
java.util.List<MParameter> parameters,
java.util.Map<java.lang.String,MethodInfo> spmappings,
java.util.Map<java.lang.String,MethodInfo> srmappings,
MTrigger trigger)
Create a new goal model element.
|
Modifier and Type | Method and Description |
---|---|
void |
addCondition(java.lang.String type,
MCondition cond)
Add a condition to the goal.
|
void |
addExclude(java.lang.String paramname)
Add an excluded parameter
|
void |
addServiceParameterMapping(java.lang.String name,
MethodInfo m) |
void |
addServiceResultMapping(java.lang.String name,
MethodInfo m) |
java.lang.Object |
createPojoInstance(IInternalAccess ip,
RGoal parent)
Create a pojo goal instance.
|
MethodInfo |
getBuildAPLMethod(java.lang.ClassLoader cl)
Get the build apl method.
|
java.util.Map<java.lang.String,java.util.List<MCondition>> |
getConditions()
Get all conditions.
|
java.util.List<MCondition> |
getConditions(java.lang.String type)
Get the conditions of a type.
|
MDeliberation |
getDeliberation()
Get the deliberation.
|
java.util.Set<java.lang.String> |
getExcludes()
Get the excludes.
|
java.lang.Object |
getPojoResultReadAccess(java.lang.ClassLoader cl)
Get the pojo result access, i.e.
|
java.lang.Object |
getPojoResultWriteAccess(java.lang.ClassLoader cl)
Get the pojo result write access, i.e.
|
long |
getRecurDelay()
Get the retry delay.
|
java.util.List<MParameter> |
getRelevantParameters()
Get the parameters which are relevant for comparing goals.
|
long |
getRetryDelay()
Get the retry delay.
|
MethodInfo |
getServiceParameterMapping(java.lang.String name) |
java.util.Map<java.lang.String,MethodInfo> |
getServiceParameterMappings()
Get the spmappings.
|
MethodInfo |
getServiceResultMapping(java.lang.String name)
Get the service result mapping.
|
java.util.Map<java.lang.String,MethodInfo> |
getServiceResultMappings()
Get the srmappings.
|
MTrigger |
getTrigger()
Get the trigger.
|
boolean |
isDeclarative()
Get the declarative.
|
boolean |
isMetagoal()
Get the metagoal.
|
boolean |
isOrSuccess()
Get the flag if is or success.
|
boolean |
isRecur()
Test if is recur.
|
boolean |
isRetry()
Test if is retry.
|
boolean |
isUnique()
Get the unique.
|
void |
setDeliberation(MDeliberation deliberation)
The deliberation to set.
|
void |
setExcludes(java.util.Set<java.lang.String> excludes)
The excludes to set.
|
void |
setMetagoal(boolean metagoal)
The metagoal to set.
|
void |
setOrSuccess(boolean orsuccess)
Set the or success.
|
void |
setRecur(boolean recur)
The recur to set.
|
void |
setRecurdelay(long recurdelay)
The recurdelay to set.
|
void |
setRetry(boolean retry)
The retry to set.
|
void |
setRetrydelay(long retrydelay)
The retrydelay to set.
|
void |
setTrigger(MTrigger trigger)
Set the trigger.
|
void |
setUnique(boolean unique)
Set the unique.
|
equals, getTarget, getTargetClass, hashCode, setTarget
getExcludeMode, isExported, isPostToAll, isRandomSelection, isRebuild, setExcludeMode, setExported, setPostToAll, setRandomSelection, setRebuild
addParameter, getParameter, getParameters, hasParameter, setParameters
getCapabilityName, getDescription, getElementName, getName, internalName, setDescription, setFlatName, setName, toString
public static final java.lang.String CONDITION_CREATION
public static final java.lang.String CONDITION_DROP
public static final java.lang.String CONDITION_TARGET
public static final java.lang.String CONDITION_MAINTAIN
public static final java.lang.String CONDITION_CONTEXT
public static final java.lang.String CONDITION_RECUR
protected boolean retry
protected boolean recur
protected long retrydelay
protected long recurdelay
protected boolean orsuccess
protected boolean unique
protected boolean metagoal
protected MDeliberation deliberation
protected MTrigger trigger
protected java.lang.Object pojoresultreadaccess
protected java.lang.Object pojoresultwriteaccess
protected java.util.Map<java.lang.String,java.util.List<MCondition>> conditions
protected java.util.Map<java.lang.String,MethodInfo> spmappings
protected java.util.Map<java.lang.String,MethodInfo> srmappings
protected MethodInfo buildaplmethod
protected java.util.List<MParameter> relevants
protected java.util.Set<java.lang.String> excludes
public MGoal()
public MGoal(java.lang.String name, java.lang.String target, boolean posttoall, boolean rebuild, boolean randomselection, MProcessableElement.ExcludeMode excludemode, boolean retry, boolean recur, long retrydelay, long recurdelay, boolean orsuccess, boolean unique, MDeliberation deliberation, java.util.List<MParameter> parameters, java.util.Map<java.lang.String,MethodInfo> spmappings, java.util.Map<java.lang.String,MethodInfo> srmappings, MTrigger trigger)
public boolean isRetry()
public void setRetry(boolean retry)
retry
- The retry to setpublic long getRetryDelay()
public void setRetrydelay(long retrydelay)
retrydelay
- The retrydelay to setpublic boolean isRecur()
public void setRecur(boolean recur)
recur
- The recur to setpublic long getRecurDelay()
public void setRecurdelay(long recurdelay)
recurdelay
- The recurdelay to setpublic boolean isOrSuccess()
public void setOrSuccess(boolean orsuccess)
orsuccess
- The or success flag..public boolean isUnique()
public void setUnique(boolean unique)
unique
- The unique to set.public MDeliberation getDeliberation()
public void setDeliberation(MDeliberation deliberation)
deliberation
- The deliberation to setpublic boolean isDeclarative()
public java.lang.Object getPojoResultReadAccess(java.lang.ClassLoader cl)
public java.lang.Object getPojoResultWriteAccess(java.lang.ClassLoader cl)
public java.lang.Object createPojoInstance(IInternalAccess ip, RGoal parent)
public void addCondition(java.lang.String type, MCondition cond)
public java.util.List<MCondition> getConditions(java.lang.String type)
public java.util.Map<java.lang.String,java.util.List<MCondition>> getConditions()
public void addServiceParameterMapping(java.lang.String name, MethodInfo m)
public MethodInfo getServiceParameterMapping(java.lang.String name)
public void addServiceResultMapping(java.lang.String name, MethodInfo m)
public MethodInfo getServiceResultMapping(java.lang.String name)
public java.util.Map<java.lang.String,MethodInfo> getServiceParameterMappings()
public java.util.Map<java.lang.String,MethodInfo> getServiceResultMappings()
public MTrigger getTrigger()
public void setTrigger(MTrigger trigger)
trigger
- The trigger to set.public MethodInfo getBuildAPLMethod(java.lang.ClassLoader cl)
public boolean isMetagoal()
public void setMetagoal(boolean metagoal)
metagoal
- The metagoal to setpublic java.util.List<MParameter> getRelevantParameters()
public java.util.Set<java.lang.String> getExcludes()
public void setExcludes(java.util.Set<java.lang.String> excludes)
excludes
- The excludes to setpublic void addExclude(java.lang.String paramname)