|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectar.edu.unr.fceia.bottallo.State
public class State
Represent a Statecharts state
Field Summary | |
---|---|
static int |
COMMON
|
static int |
COMMON_AND
|
static int |
COMMON_BASIC
|
static int |
COMMON_OR
|
static int |
CONNECTOR
|
static int |
DIAMOND
|
static int |
PARAMETRIZED
|
static int |
PARAMETRIZED_CHILD
|
static int |
PARAMETRIZED_FATHER
|
static int |
PARAMETRIZED_FATHER_AND
|
static int |
PARAMETRIZED_FATHER_OR
|
static int |
REFERENCE
|
static int |
RING
|
static int |
TEMPORIZED
|
static int |
TEMPORIZED_AND
|
static int |
TEMPORIZED_BASIC
|
static int |
TEMPORIZED_OR
|
protected int |
type
|
static int |
UNKNOWN
|
Constructor Summary | |
---|---|
State()
Creates a new instance of State |
Method Summary | |
---|---|
protected void |
addInTransition(Transition t)
Add a incomming transition to the state |
protected void |
addOutTransition(Transition t)
|
protected void |
addSubstate(State s)
Add a substate to the state |
java.lang.Object |
clone()
|
protected boolean |
getActiveSubstate()
Get information about active substate existence |
protected boolean |
getBorder()
Get the border of a state |
protected Transition |
getDefaultTransition()
Get the default transition of a state |
protected Diamond_info |
getDiamondInfo()
Get the diamond info of a state |
protected Dimension |
getDimension()
Get the dimension of the state |
protected State |
getFather()
Get the father if the state |
protected boolean |
getGraphicalStatus()
Set the graphical status of a state |
protected java.lang.String |
getId()
Get the id of a state |
protected java.util.List<Transition> |
getInTransitions()
List the incomming transitions of a state |
protected int |
getLevel()
Get the level of a state |
protected float |
getMetric()
Get the metric of a state |
protected java.lang.String |
getName()
Get the name of a state |
protected java.util.List<Transition> |
getOutTransitions()
List the outcomming transitions of a state |
protected Param_info |
getParamInfo()
Get the parametrized info of a state |
protected java.lang.String |
getPath()
Return the path of a state, being S:State, F(S):Father of S Path = F(S).name - F(F(S)).name - ... - Root_State.name |
protected State |
getReference()
Get the reference of a state |
protected java.lang.String |
getStrType()
Get the type (human) of a state |
protected java.lang.String |
getStyle()
Get the style of a state |
protected java.util.List<State> |
getSubstates()
Get the substates of a state |
protected Temp_info |
getTempInfo()
Get the temporized info of a state |
protected int |
getType()
Get the type of a state |
protected boolean |
isAndState()
Return true only if the state is an AND-state |
protected boolean |
isBasicState()
Determines if a State is a Basic State (i.e. hasn't substates) |
protected boolean |
isOrState()
Return true only if the state is an OR-state |
protected boolean |
isRootState()
Determines if a State is a Root State (nobody contains it) |
protected boolean |
isTemporized()
Return true only if the state is an temporized state |
protected void |
removeInTransition(Transition t)
Remove a incomming transition from the state |
protected void |
removeOutTransition(Transition t)
|
protected void |
removeSubstate(State s)
Remove a substate from the state |
protected void |
setActiveSubstate()
Set this state has an active substate |
protected void |
setActiveSubstate(boolean b)
Set true if is an or-state and already has an active substate |
protected void |
setBorder(boolean b)
Set the border to a state |
protected void |
setDefaultTransition(Transition t)
Set the default transition of a state |
protected void |
setDiamondInfo(Diamond_info di)
Set the diamond info to a state |
protected void |
setDimension(Dimension d)
Set the dimension of the state |
protected void |
setFather(State f)
Set the father of the state |
protected void |
setGraphicalStatus(boolean b)
Set the graphical status to a state |
protected void |
setId(java.lang.String i)
Set the id of a state |
protected void |
setLevel(int l)
Set the level to a state |
protected void |
setMetric(float m)
Set the metric to a state |
protected void |
setName(java.lang.String n)
Set the name of a state |
protected void |
setParamInfo(Param_info pi)
Set the parametrized info to a state |
protected void |
setReference(State s)
Set the reference to a state |
protected void |
setStyle(java.lang.String s)
Set the style of a state |
protected void |
setSubstates(java.util.List newSubstates)
Add a list of substates to the state |
protected void |
setTempInfo(Temp_info ti)
Set the temporized info to a state |
protected void |
setType(int t)
Set the type to a state |
protected void |
setVertices()
Set the vertices to the state |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int type
public static final int UNKNOWN
public static final int REFERENCE
public static final int TEMPORIZED
public static final int TEMPORIZED_BASIC
public static final int TEMPORIZED_OR
public static final int TEMPORIZED_AND
public static final int PARAMETRIZED
public static final int DIAMOND
public static final int RING
public static final int CONNECTOR
public static final int COMMON
public static final int COMMON_BASIC
public static final int COMMON_OR
public static final int COMMON_AND
public static final int PARAMETRIZED_CHILD
public static final int PARAMETRIZED_FATHER
public static final int PARAMETRIZED_FATHER_OR
public static final int PARAMETRIZED_FATHER_AND
Constructor Detail |
---|
public State()
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
protected void setName(java.lang.String n)
protected java.lang.String getName()
protected void setId(java.lang.String i)
protected java.lang.String getId()
protected void setStyle(java.lang.String s)
protected java.lang.String getStyle()
protected java.lang.String getPath()
protected void addInTransition(Transition t)
protected void removeInTransition(Transition t)
protected java.util.List<Transition> getInTransitions()
protected void addOutTransition(Transition t)
protected void removeOutTransition(Transition t)
protected java.util.List<Transition> getOutTransitions()
protected void setDefaultTransition(Transition t)
protected Transition getDefaultTransition()
protected void setDimension(Dimension d)
protected Dimension getDimension()
protected void addSubstate(State s)
protected void removeSubstate(State s)
protected void setSubstates(java.util.List newSubstates)
protected java.util.List<State> getSubstates()
protected void setActiveSubstate(boolean b)
protected void setActiveSubstate()
protected boolean getActiveSubstate()
protected void setFather(State f)
protected State getFather()
protected void setVertices()
protected float getMetric()
protected void setMetric(float m)
protected void setLevel(int l)
protected int getLevel()
protected void setBorder(boolean b)
protected boolean getBorder()
protected void setReference(State s)
protected State getReference()
protected void setGraphicalStatus(boolean b)
protected boolean getGraphicalStatus()
protected boolean isBasicState()
protected boolean isRootState()
protected void setType(int t)
protected int getType()
protected java.lang.String getStrType()
protected boolean isAndState()
protected boolean isOrState()
protected boolean isTemporized()
protected void setDiamondInfo(Diamond_info di)
protected Diamond_info getDiamondInfo()
protected void setTempInfo(Temp_info ti)
protected Temp_info getTempInfo()
protected void setParamInfo(Param_info pi)
protected Param_info getParamInfo()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |