| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectmascoptLib.util.ObservableObject
mascoptLib.abstractGraph.MascoptObject
MascoptObject implements the valuation system to store String, Double and Integer.
| Constructor Summary | |
MascoptObject()
Increase the counter of MascoptObject.  | 
|
| Method Summary | |
 void | 
copyValues(MascoptObject mascoptObject)
Copy the values into this object The values of mascoptObject are copied to become values of this object.
  | 
static int | 
countAllObjects()
Return the number of sets currently in memory  | 
 boolean | 
deleteValue(String name)
Delete the value for a category.  | 
 boolean | 
deleteValue(String name,
            MascoptObjectInterface o)
Delete the value for a category and a specific context.  | 
 boolean | 
existValue(String name)
Say if a value exist.  | 
 boolean | 
existValue(String name,
           MascoptObjectInterface o)
Say if a value exist.  | 
 void | 
free()
Free memory when this object is linked.  | 
 Double | 
getDoubleValue(String name)
Returns the value for a category.  | 
 Double | 
getDoubleValue(String name,
               MascoptObjectInterface o)
Returns the value for a category and a specific context.  | 
 double | 
getDouValue(String name)
Returns the value for a category.  | 
 double | 
getDouValue(String name,
            MascoptObjectInterface o)
Returns the value for a category and a specific context.  | 
 String | 
getId()
Returns the id of the MascoptObject.  | 
 Integer | 
getIntegerValue(String name)
Returns the value for a category.  | 
 Integer | 
getIntegerValue(String name,
                MascoptObjectInterface o)
Returns the value for a category and a specific context.  | 
 int | 
getIntValue(String name)
Returns the value for a category.  | 
 int | 
getIntValue(String name,
            MascoptObjectInterface o)
Returns the value for a category and a specific context.  | 
 String | 
getName()
Returns the name of the MascoptObject.  | 
 String | 
getValue(String name)
Returns the value for a category.  | 
 String | 
getValue(String name,
         MascoptObjectInterface o)
Returns the value for a category and a specific context.  | 
 Iterator | 
getValueContexts(String name)
Returns an iterator on all contexts used for a value.  | 
 String | 
getValueDataType(String name)
Returns the data type of the value associated to this name and context  | 
 String | 
getValueDataType(String name,
                 MascoptObjectInterface o)
Returns the data type of the value associated to this name and context  | 
 Iterator | 
getValueEntries()
Give the name of values stored in this object.  | 
 boolean | 
notifyOnValueChange(boolean notify)
Can be called to notify observers that the user changed the value.  | 
 void | 
removeAllValues(MascoptObjectInterface context)
Remove all values concerning a category.  | 
 void | 
setDoubleValue(String name,
               Double value)
Sets the value for a category.  | 
 void | 
setDoubleValue(String name,
               MascoptObjectInterface o,
               Double value)
Sets the value for a category and a specific context.  | 
 void | 
setDouValue(String name,
            double value)
Sets the value for a category.  | 
 void | 
setDouValue(String name,
            MascoptObjectInterface o,
            double value)
Sets the value for a category and a specific context.  | 
 void | 
setIntegerValue(String name,
                Integer value)
Sets the value for a category.  | 
 void | 
setIntegerValue(String name,
                MascoptObjectInterface o,
                Integer value)
Sets the value for a category and a specific context.  | 
 void | 
setIntValue(String name,
            int value)
Sets the value for a category.  | 
 void | 
setIntValue(String name,
            MascoptObjectInterface o,
            int value)
Sets the value for a category and a specific context.  | 
 boolean | 
setName(String name)
Sets the name of the MascoptObject.  | 
 void | 
setValue(String name,
         Double value)
Sets the value for a category.  | 
 void | 
setValue(String name,
         Integer value)
Sets the value for a category.  | 
 void | 
setValue(String name,
         MascoptObjectInterface o,
         Double value)
Sets the value for a category and a specific context.  | 
 void | 
setValue(String name,
         MascoptObjectInterface o,
         Integer value)
Sets the value for a category and a specific context.  | 
 void | 
setValue(String name,
         MascoptObjectInterface o,
         String value)
Sets the value for a category and a specific context.  | 
 void | 
setValue(String name,
         String value)
Sets the value for a category.  | 
 void | 
update(Observable observable,
       Object object)
Describe update method here. | 
| 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 | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public MascoptObject()
| Method Detail | 
public String getId()
getId in interface MascoptObjectInterfacepublic String getName()
getName in interface MascoptObjectInterfacepublic boolean setName(String name)
setName in interface MascoptObjectInterfacename - the name of the MascoptObject.public boolean notifyOnValueChange(boolean notify)
notifyOnValueChange in interface MascoptObjectInterfacenotify - true if we want to notify that a value has changed.
public String getValue(String name)
getValue in interface MascoptObjectInterfacename - the category of value to get.
public Double getDoubleValue(String name)
getDoubleValue in interface MascoptObjectInterfacename - the category of value to get.
public double getDouValue(String name)
name - the category of value to get.
public Integer getIntegerValue(String name)
getIntegerValue in interface MascoptObjectInterfacename - the category of value to get.
public int getIntValue(String name)
name - the category of value to get.
public String getValueDataType(String name)
getValueDataType in interface MascoptObjectInterfacename - the name of the value we are interested in
public String getValueDataType(String name,
                               MascoptObjectInterface o)
getValueDataType in interface MascoptObjectInterfacename - the name of the value we are interested ino - the object representing the context.
public String getValue(String name,
                       MascoptObjectInterface o)
getValue in interface MascoptObjectInterfacename - the category of value to get.o - the object, context of the value.
public Double getDoubleValue(String name,
                             MascoptObjectInterface o)
getDoubleValue in interface MascoptObjectInterfacename - the category of value to get.o - the object, context of the value.
public double getDouValue(String name,
                          MascoptObjectInterface o)
name - the category of value to get.o - the object, context of the value.
public Integer getIntegerValue(String name,
                               MascoptObjectInterface o)
getIntegerValue in interface MascoptObjectInterfacename - the category of value to get.o - the object, context of the value.
public int getIntValue(String name,
                       MascoptObjectInterface o)
name - the category of value to get.o - the object, context of the value.
public void setValue(String name,
                     String value)
setValue in interface MascoptObjectInterfacename - the category of value to get.value - is the value to store.
public void setValue(String name,
                     Integer value)
setValue in interface MascoptObjectInterfacename - the category of value to get.value - is the value to store.
public void setValue(String name,
                     Double value)
setValue in interface MascoptObjectInterfacename - the category of value to get.value - is the value to store.
public void setDoubleValue(String name,
                           Double value)
name - the category of value to get.value - is the value to store.
public void setDouValue(String name,
                        double value)
name - the category of value to get.value - is the value to store.
public void setIntegerValue(String name,
                            Integer value)
name - the category of value to get.value - is the value to store.
public void setIntValue(String name,
                        int value)
name - the category of value to get.value - is the value to store.
public void setValue(String name,
                     MascoptObjectInterface o,
                     String value)
setValue in interface MascoptObjectInterfacename - the category of value to get.o - the object, context of the value.value - is the value to store.
public void setValue(String name,
                     MascoptObjectInterface o,
                     Integer value)
setValue in interface MascoptObjectInterfacename - the category of value to get.o - the object, context of the value.value - is the value to store.
public void setValue(String name,
                     MascoptObjectInterface o,
                     Double value)
setValue in interface MascoptObjectInterfacename - the category of value to get.o - the object, context of the value.value - is the value to store.
public void setIntegerValue(String name,
                            MascoptObjectInterface o,
                            Integer value)
name - the category of value to get.o - the object, context of the value.value - is the value to store.
public void setIntValue(String name,
                        MascoptObjectInterface o,
                        int value)
name - the category of value to get.o - the object, context of the value.value - is the value to store.
public void setDoubleValue(String name,
                           MascoptObjectInterface o,
                           Double value)
name - the category of value to get.o - the object, context of the value.value - is the value to store.
public void setDouValue(String name,
                        MascoptObjectInterface o,
                        double value)
name - the category of value to get.o - the object, context of the value.value - is the value to store.public boolean deleteValue(String name)
deleteValue in interface MascoptObjectInterfacename - the category of value to delete.
public boolean deleteValue(String name,
                           MascoptObjectInterface o)
deleteValue in interface MascoptObjectInterfacename - the category of value to get.o - the object, context of the value.
public Iterator getValueEntries()
getValueEntries in interface MascoptObjectInterfacepublic Iterator getValueContexts(String name)
getValueContexts in interface MascoptObjectInterfacename - the name of the value
public void removeAllValues(MascoptObjectInterface context)
context - the oject contextpublic static int countAllObjects()
public void free()
public void copyValues(MascoptObject mascoptObject)
mascoptObject are copied to become values of this object.
 It must be remarked
 that values relative to a context are not copied and the name is also preserved.
mascoptObject - - the reference object from which we copy the values.public boolean existValue(String name)
name - the name of the value to search.
public boolean existValue(String name,
                          MascoptObjectInterface o)
name - the name of the value to search.o - the object context of the value.
public void update(Observable observable,
                   Object object)
update method here.
update in interface Observerobservable - an Observable valueobject - an Object value
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||