|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.grmm.types.UnmodifiableVarSet
public class UnmodifiableVarSet
Created: Dec 15, 2005
Constructor Summary | |
---|---|
UnmodifiableVarSet(VarSet subVarSet)
|
Method Summary | |
---|---|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection collection)
|
AssignmentIterator |
assignmentIterator()
Returns an iterator over the assignments to this clique. |
void |
clear()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection collection)
|
boolean |
equals(java.lang.Object o)
|
Variable |
get(int idx)
Returns the variable in this clique at index idx. |
int |
hashCode()
|
VarSet |
intersection(VarSet c)
Returns the intersection of two cliques. |
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection collection)
|
boolean |
retainAll(java.util.Collection collection)
|
int |
size()
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] objects)
|
java.lang.String |
toString()
|
Variable[] |
toVariableArray()
Returns the variables in this clique as an array, that should not be modified. |
java.util.Set |
vertices()
|
int |
weight()
Returns the number of assignments of this clique. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnmodifiableVarSet(VarSet subVarSet)
Method Detail |
---|
public Variable get(int idx)
VarSet
get
in interface VarSet
public java.util.Set vertices()
public Variable[] toVariableArray()
VarSet
toVariableArray
in interface VarSet
public int weight()
VarSet
weight
in interface VarSet
public AssignmentIterator assignmentIterator()
VarSet
Assignment
object.
assignmentIterator
in interface VarSet
public VarSet intersection(VarSet c)
VarSet
intersection
in interface VarSet
public int size()
size
in interface java.util.Collection
size
in interface java.util.Set
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.Set
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
contains
in interface java.util.Set
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.Set
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.Set
public java.lang.Object[] toArray(java.lang.Object[] objects)
toArray
in interface java.util.Collection
toArray
in interface java.util.Set
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.Set
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.Set
public boolean containsAll(java.util.Collection collection)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.Set
public boolean addAll(java.util.Collection collection)
addAll
in interface java.util.Collection
addAll
in interface java.util.Set
public boolean retainAll(java.util.Collection collection)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.Set
public boolean removeAll(java.util.Collection collection)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.Set
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.Set
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection
equals
in interface java.util.Set
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection
hashCode
in interface java.util.Set
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |