public class MonotonicityCounterexamples
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MonotonicityCounterexamples.ConceptPair
Encapsulate counterexample pairs.
|
Constructor and Description |
---|
MonotonicityCounterexamples()
Construct an empty set of counterexamples.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Concept x1,
Concept x2)
Add a pair of concepts as a counterexample to this set.
|
boolean |
containsCounterexamples()
Determine if this set contains any counterexamples.
|
MonotonicityCounterexamples.ConceptPair[] |
entryArraySorted()
Return the sorted entry array.
|
java.util.Set<MonotonicityCounterexamples.ConceptPair> |
entrySet()
Return a set of all the counterexamples.
|
boolean |
equals(java.lang.Object o) |
static MonotonicityCounterexamples |
fromToken(Token token)
Create a counterexample set from a specific representation as a
Ptolemy Token.
|
int |
hashCode() |
java.lang.String |
toString()
Return the string representation of the counterexample set.
|
ArrayToken |
toToken()
Return a representation of the counterexample set as a Ptolemy Token.
|
public MonotonicityCounterexamples()
public static MonotonicityCounterexamples fromToken(Token token) throws IllegalActionException
token
- The Ptolemy Token representing a set of counterexamples
to monotonicity.IllegalActionException
- If the given Token does not conform to
the required structure;toToken()
public void add(Concept x1, Concept x2)
x1
- The lesser concept.x2
- The greater concept.public boolean containsCounterexamples()
public MonotonicityCounterexamples.ConceptPair[] entryArraySorted()
public java.util.Set<MonotonicityCounterexamples.ConceptPair> entrySet()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public ArrayToken toToken() throws IllegalActionException
IllegalActionException
- If any of the concepts are nullfromToken(Token)