org.argouml.cognitive
Class Goal

java.lang.Object
  extended byorg.argouml.cognitive.Goal

public class Goal
extends Object

This class models a goal of a designer.


Field Summary
private  String name
          The localized name.
private  int priority
          The priority.
private static Goal UNSPEC
          The unspecified goal.
 
Constructor Summary
Goal(String n, int p)
          The constructor.
 
Method Summary
 boolean equals(Object d2)
           
 String getName()
           
 int getPriority()
           
static Goal getUnspecifiedGoal()
           
 int hashCode()
           
 void setName(String n)
           
 void setPriority(int p)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNSPEC

private static final Goal UNSPEC
The unspecified goal.


name

private String name
The localized name.


priority

private int priority
The priority.

Constructor Detail

Goal

public Goal(String n,
            int p)
The constructor.

Parameters:
n - the name (to be localized)
p - the priority
Method Detail

hashCode

public int hashCode()
See Also:
Object.hashCode()

equals

public boolean equals(Object d2)
See Also:
Object.equals(java.lang.Object)

getName

public String getName()
Returns:
the localized name

setName

public void setName(String n)
Parameters:
n - the localized name

getPriority

public int getPriority()
Returns:
the priority

setPriority

public void setPriority(int p)
Parameters:
p - the priority

toString

public String toString()
See Also:
Object.toString()

getUnspecifiedGoal

public static Goal getUnspecifiedGoal()
Returns:
Returns the unspecified goal.


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook