|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--mascoptLib.util.ObservableObject
|
+--mascoptLib.abstractGraph.MascoptObject
|
+--mascoptLib.abstractGraph.MascoptSet
This class implements the concept of MascoptSet. A new implementation was needed in order to comply more closely with the object oriented way of doing things. Basically, a MascoptSet object is a MascoptObject object which contains a Hashset to store objects.
| Constructor Summary | |
MascoptSet()
|
|
MascoptSet(MascoptSet superSet)
Constuctor for subsets. |
|
| Method Summary | |
boolean |
add(MascoptObject mascoptobject)
Describe add method here. |
boolean |
add(Object object)
Describe add method here. |
boolean |
addAll(Collection collection)
Describe addAll method here. |
void |
clear()
Describe clear method here. |
boolean |
contains(Object object)
Describe contains method here. |
boolean |
containsAll(Collection collection)
Describe containsAll method here. |
static int |
countAllSets()
Return the number of sets currently in memory |
boolean |
equals(Object object)
Describe equals method here. |
void |
free()
Free memory when this object is linked. |
MascoptSet |
getSuperSet()
Returns the super set of the object if exists. |
int |
hashCode()
Describe hashCode method here. |
boolean |
isEditable()
Specify if a set is editable or not. |
boolean |
isEmpty()
Describe isEmpty method here. |
boolean |
isSubSet()
Says if the object is a subset of an other. |
Iterator |
iterator()
Describe iterator method here. |
boolean |
remove(MascoptObject mascoptobject)
Describe remove method here. |
boolean |
remove(Object object)
Describe remove method here. |
boolean |
removeAll(Collection collection)
Describe removeAll method here. |
void |
removeAllValues(MascoptObjectInterface context)
Remove all values concerning a category. |
void |
removeAllValuesOnElementsOfset(MascoptObjectInterface context)
Remove all values concerning a category. |
boolean |
retainAll(Collection collection)
Describe retainAll method here. |
boolean |
setSuperSet(MascoptSet superSet)
Sets the supersets without verification. |
void |
setValueForAllElements(String name,
String value)
Write values in the set for all elements. |
void |
setValueForAllElements(String name,
String value,
MascoptObjectInterface g)
Write values in the set for all elements. |
int |
size()
Describe size method here. |
Object[] |
toArray()
Describe toArray method here. |
MascoptObject[] |
toArray(MascoptObject[] mascoptObjectArray)
Describe toArray method here. |
Object[] |
toArray(Object[] objectArray)
Describe toArray method here. |
void |
update(Observable observable,
Object object)
Describe update method here. |
| Methods inherited from class mascoptLib.abstractGraph.MascoptObject |
copyValues, countAllObjects, deleteValue, deleteValue, existValue, existValue, getDoubleValue, getDoubleValue, getDouValue, getDouValue, getId, getIntegerValue, getIntegerValue, getIntValue, getIntValue, getName, getValue, getValue, getValueContexts, getValueDataType, getValueDataType, getValueEntries, notifyOnValueChange, setDoubleValue, setDoubleValue, setDouValue, setDouValue, setIntegerValue, setIntegerValue, setIntValue, setIntValue, setName, setValue, setValue, setValue, setValue, setValue, setValue |
| Methods inherited from class mascoptLib.util.ObservableObject |
addAddObserver, addRemoveObserver, addValueObserver, countAddObservers, countRemoveObservers, countValueObservers, deleteAddObserver, deleteAddObserver, deleteRemoveObserver, deleteRemoveObserver, deleteValueObserver, deleteValueObserver |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MascoptSet()
public MascoptSet(MascoptSet superSet)
add or
addAll.
superSet - the super set to use.| Method Detail |
public MascoptSet getSuperSet()
public boolean isSubSet()
public boolean setSuperSet(MascoptSet superSet)
superSet - the superSet to use for the set.
public void update(Observable observable,
Object object)
update method here.
update in interface Observerobservable - an Observable valueobject - an Object valuepublic int hashCode()
hashCode method here.
hashCode in interface SethashCode in class Objectint valuepublic boolean equals(Object object)
equals method here.
equals in interface Setequals in class Objectobject - an Object value
boolean valuepublic boolean addAll(Collection collection)
addAll method here.
addAll in interface Setcollection - a Collection value
boolean valuepublic boolean add(Object object)
add method here.
add in interface Setboolean valuepublic boolean add(MascoptObject mascoptobject)
add method here.
mascoptobject - a MascoptObject value
boolean valuepublic boolean contains(Object object)
contains method here.
contains in interface Setobject - an Object value
boolean valuepublic int size()
size method here.
size in interface Setint valuepublic Object[] toArray()
toArray method here.
toArray in interface SetMascoptObject[] valuepublic Object[] toArray(Object[] objectArray)
toArray method here.
toArray in interface SetobjectArray - an Object[] value
Object[] valuepublic MascoptObject[] toArray(MascoptObject[] mascoptObjectArray)
toArray method here.
MascoptObject[] valuepublic Iterator iterator()
iterator method here.
iterator in interface SetIterator valuepublic boolean remove(Object object)
remove method here.
remove in interface Setobject - a Object value
boolean valuepublic boolean remove(MascoptObject mascoptobject)
remove method here.
boolean valuepublic void clear()
clear method here.
clear in interface Setpublic boolean isEmpty()
isEmpty method here.
isEmpty in interface Setboolean valuepublic boolean containsAll(Collection collection)
containsAll method here.
containsAll in interface Setcollection - a Collection value
boolean valuepublic boolean removeAll(Collection collection)
removeAll method here.
removeAll in interface Setcollection - a Collection value
boolean valuepublic boolean retainAll(Collection collection)
retainAll method here.
retainAll in interface Setcollection - a Collection value
boolean value
public void setValueForAllElements(String name,
String value)
name - the string reprensenting the parametervalue - the value to write for this parameter
public void setValueForAllElements(String name,
String value,
MascoptObjectInterface g)
name - the string reprensenting the parametervalue - the value to write for this parameterg - the graph representing the contextpublic void removeAllValuesOnElementsOfset(MascoptObjectInterface context)
context - the oject contextpublic void removeAllValues(MascoptObjectInterface context)
removeAllValues in class MascoptObjectcontext - the oject contextpublic boolean isEditable()
public void free()
free in class MascoptObjectpublic static int countAllSets()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||