ar.edu.unr.fceia.bottallo
Class Connector

java.lang.Object
  extended by ar.edu.unr.fceia.bottallo.Connector

public class Connector
extends java.lang.Object

Represent a Statechart connector


Field Summary
static int CONDITION
           
static int FORK
           
static int JOINT
           
static int SELECTION
           
static int UNSUPPORTED
           
 
Constructor Summary
Connector()
          Creates a new instance of Connector
 
Method Summary
protected  void addInTransition(Transition t)
          Add an incoming transition to the connector
protected  void addOutTransition(Transition t)
          Add an outcoming transition to the connector
protected  Dimension getDimension()
          Get the dimension of the connector
protected  State getFather()
          Get the connector's father
protected  java.lang.String getId()
          Get the id of the connector
protected  java.util.List<Transition> getInTransitions()
          List all incoming transitions of the connector
protected  int getLevel(int l)
          Get the level of this element
protected  float getMetric()
          Get the metric of the connector
protected  java.util.List<Transition> getOutTransitions()
          List all outcoming transitions of the connector
protected  int getType()
          Get the type of the connector
protected  java.lang.String getTypeStr()
          Translate numerical-type to text type, useful to error messages
protected  void removeInTransition(Transition t)
          Remove an incoming transition to the connector
protected  void removeOutTransition(Transition t)
          Remove an outcoming transition to the connector
protected  void setDimension(Dimension d)
          Set the dimension of the connector, useful to detect inclusions
protected  void setFather(State s)
          Set the connector's father
protected  void setId(java.lang.String i)
          Set the id of the connector
protected  void setLevel(int l)
          Set the level of this element
protected  void setMetric(float m)
          Set the metric of the connector, useful to detect inclusions
protected  void setType(int t)
          Set the type of the connector
protected  void setVertices()
          Set the vertices of the connector, Useful to detect inclusions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNSUPPORTED

public static final int UNSUPPORTED
See Also:
Constant Field Values

CONDITION

public static final int CONDITION
See Also:
Constant Field Values

SELECTION

public static final int SELECTION
See Also:
Constant Field Values

FORK

public static final int FORK
See Also:
Constant Field Values

JOINT

public static final int JOINT
See Also:
Constant Field Values
Constructor Detail

Connector

public Connector()
Creates a new instance of Connector

Method Detail

setId

protected void setId(java.lang.String i)
Set the id of the connector

Parameters:
i - string with the connector's id

getId

protected java.lang.String getId()
Get the id of the connector

Returns:
connector's id

setType

protected void setType(int t)
Set the type of the connector

Parameters:
t - connectors' type

getType

protected int getType()
Get the type of the connector

Returns:
connector's type

getTypeStr

protected java.lang.String getTypeStr()
Translate numerical-type to text type, useful to error messages

Returns:
textual type's connector

setFather

protected void setFather(State s)
Set the connector's father

Parameters:
s - A state

getFather

protected State getFather()
Get the connector's father

Returns:
A state

addInTransition

protected void addInTransition(Transition t)
Add an incoming transition to the connector


removeInTransition

protected void removeInTransition(Transition t)
Remove an incoming transition to the connector


getInTransitions

protected java.util.List<Transition> getInTransitions()
List all incoming transitions of the connector


addOutTransition

protected void addOutTransition(Transition t)
Add an outcoming transition to the connector


removeOutTransition

protected void removeOutTransition(Transition t)
Remove an outcoming transition to the connector


getOutTransitions

protected java.util.List<Transition> getOutTransitions()
List all outcoming transitions of the connector


setDimension

protected void setDimension(Dimension d)
Set the dimension of the connector, useful to detect inclusions


getDimension

protected Dimension getDimension()
Get the dimension of the connector


setVertices

protected void setVertices()
Set the vertices of the connector, Useful to detect inclusions


setLevel

protected void setLevel(int l)
Set the level of this element


getLevel

protected int getLevel(int l)
Get the level of this element


setMetric

protected void setMetric(float m)
Set the metric of the connector, useful to detect inclusions


getMetric

protected float getMetric()
Get the metric of the connector