Package cruise.umple.compiler
Class Event
java.lang.Object
cruise.umple.compiler.Event
public class Event
extends java.lang.Object
NEW CLASS****************************************
-
Constructor Summary
Constructors Constructor Description Event(java.lang.String aName) -
Method Summary
Modifier and Type Method Description booleanaddOrMoveParamAt(MethodParameter aParam, int index)booleanaddParam(MethodParameter aParam)booleanaddParamAt(MethodParameter aParam, int index)Eventclone()Please maintain this method if you're going to add new features to Events.booleancompareWithAnotherEvent(Event inEvent)static EventcreateAutoTransition()voiddelete()booleanequals(java.lang.Object obj)java.lang.StringgetArgs()booleangetAutoTransition()booleangetIsInternal()for code generation only e.g.booleangetIsTimer()String args = null;java.lang.StringgetName()MethodParametergetParam(int index)java.util.List<MethodParameter>getParams()The event parameters.java.lang.StringgetTimerInSeconds()TODO: how do you specify milliseconds etc.java.lang.StringgetType()The type of the method.booleangetUnspecified()inthashCode()booleanhasParams()intindexOfParam(MethodParameter aParam)booleanisAutoTransition()booleanisIsInternal()booleanisIsTimer()booleanisUnspecified()static intminimumNumberOfParams()intnumberOfParams()booleanremoveParam(MethodParameter aParam)booleansetAutoTransition(boolean aAutoTransition)booleansetIsInternal(boolean aIsInternal)booleansetIsTimer(boolean aIsTimer)booleansetName(java.lang.String aName)static voidsetNextAutoTransitionId(int value)booleansetTimerInSeconds(java.lang.String aTimerInSeconds)booleansetType(java.lang.String aType)booleansetUnspecified(boolean aUnspecified)java.lang.StringtoString()
-
Constructor Details
-
Event
public Event(java.lang.String aName)
-
-
Method Details
-
setName
public boolean setName(java.lang.String aName) -
setIsTimer
public boolean setIsTimer(boolean aIsTimer) -
setAutoTransition
public boolean setAutoTransition(boolean aAutoTransition) -
setTimerInSeconds
public boolean setTimerInSeconds(java.lang.String aTimerInSeconds) -
setIsInternal
public boolean setIsInternal(boolean aIsInternal) -
setUnspecified
public boolean setUnspecified(boolean aUnspecified) -
setType
public boolean setType(java.lang.String aType) -
getName
public java.lang.String getName() -
getIsTimer
public boolean getIsTimer()String args = null; -
getAutoTransition
public boolean getAutoTransition() -
getTimerInSeconds
public java.lang.String getTimerInSeconds()TODO: how do you specify milliseconds etc. -
getIsInternal
public boolean getIsInternal()for code generation only e.g. ouside scope of nested state -
getUnspecified
public boolean getUnspecified() -
getType
public java.lang.String getType()The type of the method. -
isIsTimer
public boolean isIsTimer() -
isAutoTransition
public boolean isAutoTransition() -
isIsInternal
public boolean isIsInternal() -
isUnspecified
public boolean isUnspecified() -
getParam
-
getParams
The event parameters. -
numberOfParams
public int numberOfParams() -
hasParams
public boolean hasParams() -
indexOfParam
-
minimumNumberOfParams
public static int minimumNumberOfParams() -
addParam
-
removeParam
-
addParamAt
-
addOrMoveParamAt
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
delete
public void delete() -
createAutoTransition
-
setNextAutoTransitionId
public static void setNextAutoTransitionId(int value) -
getArgs
public java.lang.String getArgs() -
compareWithAnotherEvent
-
clone
Please maintain this method if you're going to add new features to Events. This code manually creates a clone of a Events.- Overrides:
clonein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-