|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhstralsund.vinets.algorithm.Parameter
public class Parameter
A class to encapsulate a Graph, a message String and further options to be passed from and to an Algorithm.
Constructor Summary | |
---|---|
Parameter(Graph theGraph,
java.lang.String theMessage)
Constructs a new Parameter object. |
Method Summary | |
---|---|
void |
appendMessage(java.lang.String s)
Appends a text to the encapsulated message. |
boolean |
containsKey(java.lang.Object key)
Returns true if the Parameter contains a mapping for the specified key. |
boolean |
getBooleanProperty(java.lang.Object key)
Convenience method - equivalent to ((Boolean)getProperty(key)).booleanValue(). |
double |
getDoubleProperty(java.lang.Object key)
Convenience method - equivalent to ((Double)getProperty(key)).doubleValue(). |
Graph |
getGraph()
Delivers the encapsulated Graph object. |
int |
getIntProperty(java.lang.Object key)
Convenience method - equivalent to ((Integer)getProperty(key)).intValue(). |
java.lang.String |
getMessage()
Delivers the encapsulated message. |
java.lang.Object |
getProperty(java.lang.Object key)
Returns the value associated with the passed key. |
void |
setBooleanProperty(java.lang.Object key,
boolean value)
Convenience method - equivalent to setProperty(key, new Boolean(value)). |
void |
setDoubleProperty(java.lang.Object key,
double x)
Convenience method - equivalent to setProperty(key, new Double(x)). |
void |
setIntProperty(java.lang.Object key,
int i)
Convenience method - equivalent to setProperty(key, new Integer(i)). |
void |
setMessage(java.lang.String s)
Changes the encapsulated message. |
void |
setProperty(java.lang.Object key,
java.lang.Object value)
Adds a new property to this Parameter object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Parameter(Graph theGraph, java.lang.String theMessage)
theGraph
- the Graph object to be encapsulated.theMessage
- a String containing a message. (If the
null reference is passed here, an empty String is used.)Method Detail |
---|
public Graph getGraph()
public java.lang.String getMessage()
public void setMessage(java.lang.String s)
s
- the new message String.public void appendMessage(java.lang.String s)
s
- the text to append.public void setProperty(java.lang.Object key, java.lang.Object value)
key
- an Object serving as key.value
- an Object to be stored with the associated key.public java.lang.Object getProperty(java.lang.Object key)
key
- an Object serving as key.
public boolean containsKey(java.lang.Object key)
key
- the key whose presence is to be tested.
public void setIntProperty(java.lang.Object key, int i)
key
- an Object serving as key.i
- an integer value to be associated with the specified key.setProperty(Object, Object)
public int getIntProperty(java.lang.Object key)
key
- an Object serving as key.
getProperty(Object)
public double getDoubleProperty(java.lang.Object key)
key
- an Object serving as key.
getProperty(Object)
public void setDoubleProperty(java.lang.Object key, double x)
key
- an Object serving as key.x
- a double value to be associated with the specified key.setProperty(Object, Object)
public void setBooleanProperty(java.lang.Object key, boolean value)
key
- an Object serving as key.value
- true or false to be associated with the specified key.setProperty(Object, Object)
public boolean getBooleanProperty(java.lang.Object key)
key
- an Object serving as key.
getProperty(Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |