| Modifier and Type | Field and Description |
|---|---|
static DesignPattern[] |
FEASIBLE
The Constant FEASIBLE.
|
static DesignPattern[] |
IMPLEMENTED
The Constant IMPLEMENTED.
|
| Constructor and Description |
|---|
DesignPattern(java.lang.String name,
java.lang.String category)
Instantiates a new design pattern.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addStereotype(java.util.Collection<? extends Element> elements)
Adds the stereotype.
|
boolean |
addStereotype(Element element)
Adds the stereotype.
|
abstract boolean |
apply(Scope scope)
Apply.
|
boolean |
equals(java.lang.Object obj)
Equals.
|
java.lang.String |
getCategory()
Gets the category.
|
java.lang.String |
getName()
Gets the name.
|
int |
hashCode()
Hash code.
|
boolean |
randomlyVerifyAsPSOrPSPLA(Scope scope)
Randomly verify as PS or PSPLA.
|
abstract boolean |
verifyPS(Scope scope)
Verify PS.
|
abstract boolean |
verifyPSPLA(Scope scope)
Verify PSPLA.
|
public static final DesignPattern[] FEASIBLE
public static final DesignPattern[] IMPLEMENTED
public DesignPattern(java.lang.String name,
java.lang.String category)
name - the namecategory - the categorypublic java.lang.String getName()
public java.lang.String getCategory()
public boolean randomlyVerifyAsPSOrPSPLA(Scope scope)
scope - the scopepublic abstract boolean verifyPS(Scope scope)
scope - the scopepublic abstract boolean verifyPSPLA(Scope scope)
scope - the scopepublic abstract boolean apply(Scope scope)
scope - the scopepublic boolean addStereotype(Element element)
element - the elementprotected void addStereotype(java.util.Collection<? extends Element> elements)
elements - the elementspublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the obj