public interface Dependency extends java.lang.Comparable<Dependency>
A dependency represents a causality relationship between two ports. Implementations of this interface are required to satisfy certain algebraic properties, but as long as these are satisfied, there is considerable freedom.
Modifier and Type | Field and Description |
---|---|
static int |
EQUALS
Return value of compareTo() if this is equal to the argument.
|
static int |
GREATER_THAN
Return value of compareTo() if this is greater than the argument.
|
static int |
INCOMPARABLE
Return value of compareTo() if this is incomparable to the argument.
|
static int |
LESS_THAN
Return value of compareTo() if this is less than the argument.
|
Modifier and Type | Method and Description |
---|---|
Dependency |
oPlus(Dependency d)
Return a dependency that results from parallel composition of
this one and the specified one.
|
Dependency |
oPlusIdentity()
Return the dependency that when added to any other
dependency using oPlus() yields the other dependency.
|
Dependency |
oTimes(Dependency d)
Return a dependency that results from serial composition of
this one and the specified one.
|
Dependency |
oTimesIdentity()
Return the dependency that when multiplied by any other
dependency using oTimes() yields the other dependency.
|
static final int EQUALS
static final int GREATER_THAN
static final int INCOMPARABLE
static final int LESS_THAN
Dependency oPlus(Dependency d)
d
- The dependency to add.java.lang.ClassCastException
- if d is not a BooleanDependency.Dependency oPlusIdentity()
Dependency oTimes(Dependency d)
d
- The dependency to multiply.java.lang.ClassCastException
- if d is not a BooleanDependency.Dependency oTimesIdentity()