|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcage.SingleElementRule
public class SingleElementRule
An implementation of ElementRule that always returns the same
element.
| Constructor Summary | |
|---|---|
SingleElementRule(java.lang.String element)
Create a new SingleElementRule object that always returns
element. |
|
| Method Summary | |
|---|---|
java.lang.String |
getElement(EmbeddableGraph graph,
int vertex)
Returns the chemical symbol of the chemical element of the atom which will always be the element set on construction of this rule. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleElementRule(java.lang.String element)
SingleElementRule object that always returns
element.
element - The element which this rule should return.| Method Detail |
|---|
public java.lang.String getElement(EmbeddableGraph graph,
int vertex)
getElement in interface ElementRulegraph - The graph that contains the vertexvertex - The vertex for which the element is requested
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||