public class RightHandRule extends HandRule
Constructor and Description |
---|
RightHandRule(OuterRuleMembrane outerMembrane,
MultiSet<java.lang.String> multiset)
Creates a new
RightHandRule instance with the outer membrane and
the outer multiset passed as parameters. |
RightHandRule(OuterRuleMembrane outerMembrane,
OuterRuleMembrane secondOuterMembrane,
MultiSet<java.lang.String> multiset)
Creates a new
RightHandRule instance with the outer membrane, the
outer membrane resulting from division and the outer multiset passed as
parameters. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Set<java.lang.String> |
getObjects()
Gets all objects involved in the rule including those in the second
membrane
|
OuterRuleMembrane |
getSecondOuterRuleMembrane()
Gets the second outer rule membrane if it exists.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toString(boolean removeLabels) |
getMultiSet, getOuterRuleMembrane
public RightHandRule(OuterRuleMembrane outerMembrane, MultiSet<java.lang.String> multiset)
RightHandRule
instance with the outer membrane and
the outer multiset passed as parameters. As there's no second outer rule
membrane, this constructor doesn't support membrane divisionouterMembrane
- the outer membrane of the rulemultiset
- the outer multiset of the rulepublic RightHandRule(OuterRuleMembrane outerMembrane, OuterRuleMembrane secondOuterMembrane, MultiSet<java.lang.String> multiset)
RightHandRule
instance with the outer membrane, the
outer membrane resulting from division and the outer multiset passed as
parameters. This constructor is intended to be used to create rules
instances which perform divisionouterMembrane
- the outer membrane of the rulemultiset
- the outer multiset of the rulesecondOuterMembrane
- the outer membrane resulting from membrane divisionpublic OuterRuleMembrane getSecondOuterRuleMembrane()
public java.lang.String toString()
toString
in class HandRule
HandRule.toString()
public java.lang.String toString(boolean removeLabels)
public int hashCode()
hashCode
in class HandRule
HandRule.hashCode()
public java.util.Set<java.lang.String> getObjects()
getObjects
in class HandRule
public boolean equals(java.lang.Object obj)
equals
in class HandRule
HandRule.equals(java.lang.Object)