de.cau.cs.kieler.synccharts.codegen.sc
Class Dependency

java.lang.Object
  extended by de.cau.cs.kieler.synccharts.codegen.sc.Dependency

public class Dependency
extends Object

A dependency is a type which contains two tuples and a type. The tuples represents two states (the first and the second one) and the type differentiates between control flow dependencies, hierarchical dependencies and signal dependencies.

Rating yellow
(2010-06-14)

Constructor Summary
Dependency()
          The constructor without parameters.
Dependency(StatePlusTransition firstState, StatePlusTransition secondState, int type)
          The constructor with two tuples and a type.
 
Method Summary
 boolean equals(Object other)
          
 int getDependencyType()
          Returns the type of the dependency.
 StatePlusTransition getFirstState()
          Returns the first state tuple.
 StatePlusTransition getSecondState()
          Returns the second state tuple.
 void setDependencyType(int type)
          Sets the type of the dependency.
 void setFirstStateTupel(StatePlusTransition firstState)
          Sets the first state tuple.
 void setSecondStateTupel(StatePlusTransition secondState)
          Sets the second state tuple.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dependency

public Dependency(StatePlusTransition firstState,
                  StatePlusTransition secondState,
                  int type)
The constructor with two tuples and a type.

Parameters:
firstState - tuple of the first state
secondState - tuple of the second state
type - type of the dependency

Dependency

public Dependency()
The constructor without parameters.

Method Detail

getFirstState

public StatePlusTransition getFirstState()
Returns the first state tuple.

Returns:
first state tuple

getSecondState

public StatePlusTransition getSecondState()
Returns the second state tuple.

Returns:
second state tuple

getDependencyType

public int getDependencyType()
Returns the type of the dependency.

Returns:
dependency type

setFirstStateTupel

public void setFirstStateTupel(StatePlusTransition firstState)
Sets the first state tuple.

Parameters:
firstState - first state tuple

setSecondStateTupel

public void setSecondStateTupel(StatePlusTransition secondState)
Sets the second state tuple.

Parameters:
secondState - second state tuple

setDependencyType

public void setDependencyType(int type)
Sets the type of the dependency.

Parameters:
type - type of the dependency

equals

public boolean equals(Object other)

Overrides:
equals in class Object