public class StateExtras extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
StateExtras() |
protected |
StateExtras(StateExtras x) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToDefaultMayMap(String name,
Collection<ObjectLabel> labels)
Adds the given object labels to the 'default' of the map identified by name.
|
void |
addToMayMap(String name,
String key,
Collection<ObjectLabel> labels)
Adds the given key and set of object labels to the map identified by name.
|
void |
addToMaySet(String name,
Collection<ObjectLabel> labels)
Adds a collection of object labels to a named may set.
|
void |
addToMustSet(String name,
Collection<ObjectLabel> labels)
Adds a collection of object labels to the named must set.
|
boolean |
equals(Object obj) |
void |
getAllObjectLabels(Set<ObjectLabel> live) |
Set<ObjectLabel> |
getFromMayMap(String name,
String key)
Retrieves a set of object labels from the named map given the key.
|
Set<ObjectLabel> |
getFromMaySet(String name)
Returns the set of object labels identified by the given name.
|
Set<ObjectLabel> |
getFromMustSet(String name)
Returns the set of object labels identified by the given name.
|
int |
hashCode()
Computes the hash code for this object.
|
boolean |
isNone()
Checks whether the sets are empty.
|
protected boolean |
propagate(StateExtras s) |
void |
remove(StateExtras other)
Removes the parts that are also in 'other'.
|
void |
replaceObjectLabels(Map<ObjectLabel,ObjectLabel> m)
Replaces all object labels according to the given map.
|
void |
setToNone()
Resets all maps.
|
String |
toString()
Returns a description of the sets and maps.
|
protected StateExtras()
protected StateExtras(StateExtras x)
public void addToDefaultMayMap(String name, Collection<ObjectLabel> labels)
public void addToMayMap(String name, String key, Collection<ObjectLabel> labels)
public void addToMaySet(String name, Collection<ObjectLabel> labels)
public void addToMustSet(String name, Collection<ObjectLabel> labels)
public void getAllObjectLabels(Set<ObjectLabel> live)
public Set<ObjectLabel> getFromMayMap(String name, String key)
public Set<ObjectLabel> getFromMaySet(String name)
public Set<ObjectLabel> getFromMustSet(String name)
public int hashCode()
public boolean isNone()
protected boolean propagate(StateExtras s)
public void remove(StateExtras other)
public void replaceObjectLabels(Map<ObjectLabel,ObjectLabel> m)
public void setToNone()
Copyright © 2012 Aarhus University