public class NamedSoftgoal extends MetadataElementImpl implements Softgoal, MetadataElement
MetadataElement interface, allowing to associate
metadata with softgoals.metadata| Modifier | Constructor and Description |
|---|---|
protected |
NamedSoftgoal()
The default constructor.
|
|
NamedSoftgoal(java.lang.String name)
Initializes a softgoal with its name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true of the object is a named softgoal and has the same name of
this named softgoal.
|
java.lang.String |
getName()
Returns the name of this softgoal.
|
int |
hashCode()
Returns the hash code of this named softgoal.
|
protected void |
setName(java.lang.String name)
Sets the name of this softgoal.
|
java.lang.String |
toString()
Returns the string representation of this softgoal, which is its name.
|
getMetadata, getMetadata, hasMetadata, putMetadata, removeMetadataclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMetadata, getMetadata, hasMetadata, putMetadata, removeMetadataprotected NamedSoftgoal()
public NamedSoftgoal(java.lang.String name)
name - the softgoal name.public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - to object to be tested if it is equal to this named softgoal.Object.equals(Object)public java.lang.String getName()
public final int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()protected void setName(java.lang.String name)
name - the name to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()