|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Graph
A representation of the model object 'Graph'.
The following features are supported:
HenshinPackage.getGraph()
Method Summary | |
---|---|
NestedCondition |
createNAC(String name)
Create a new negative application condition (NAC) in this graphs formula. |
NestedCondition |
createPAC(String name)
Create a new positive application condition (PAC) in this graphs formula. |
EList<Edge> |
getEdges()
Returns the value of the 'Edges' containment reference list. |
EList<Edge> |
getEdges(EReference edgeType)
Get all edges in this graph that are of a specific type. |
Formula |
getFormula()
Returns the value of the 'Formula' containment reference. |
NestedCondition |
getNAC(String name)
Get a negative application condition (PAC) of this graph with a given name. |
EList<NestedCondition> |
getNACs()
|
EList<NestedCondition> |
getNestedConditions()
Get all nested conditions that occur in the formula of this graph. |
Node |
getNode(String name)
Get the first node in this graph that has the given argument name. |
EList<Node> |
getNodes()
Returns the value of the 'Nodes' containment reference list. |
EList<Node> |
getNodes(EClass nodeType)
Get all nodes in this graph that are of a specific type. |
NestedCondition |
getPAC(String name)
Get a positive application condition (PAC) of this graph with a given name. |
EList<NestedCondition> |
getPACs()
|
Rule |
getRule()
Returns the Rule this graph is contained in or null if it is not directly contained in a Rule . |
boolean |
isLhs()
Check whether this graph is the left-hand side of a rule. |
boolean |
isNestedCondition()
Check whether this graph is a nested condition of a rule. |
boolean |
isRhs()
Check whether this graph is the right-hand side of a rule. |
boolean |
removeEdge(Edge edge)
Detaches the given edge from its source and target node and removes it from this graph. |
boolean |
removeNestedCondition(NestedCondition nestedCondition)
Remove a nested condition from this graph's formula. |
boolean |
removeNode(Node node)
Removes the given node from this graph. |
void |
setFormula(Formula value)
Sets the value of the ' Formula ' containment reference. |
Methods inherited from interface org.eclipse.emf.henshin.model.NamedElement |
---|
getDescription, getName, setDescription, setName |
Methods inherited from interface org.eclipse.emf.henshin.model.ModelElement |
---|
getAnnotations |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
---|
EList<Node> getNodes()
Node
.
It is bidirectional and its opposite is 'Graph
'.
HenshinPackage.getGraph_Nodes()
,
Node.getGraph()
EList<Edge> getEdges()
Edge
.
It is bidirectional and its opposite is 'Graph
'.
HenshinPackage.getGraph_Edges()
,
Edge.getGraph()
Formula getFormula()
setFormula(Formula)
,
HenshinPackage.getGraph_Formula()
void setFormula(Formula value)
Formula
' containment reference.
value
- the new value of the 'Formula' containment reference.getFormula()
Rule getRule()
Rule
this graph is contained in or null
if it is not directly contained in a Rule
.
Node getNode(String name)
EList<Node> getNodes(EClass nodeType)
EList<Edge> getEdges(EReference edgeType)
EList<NestedCondition> getNestedConditions()
NestedCondition getPAC(String name)
NestedCondition getNAC(String name)
EList<NestedCondition> getPACs()
EList<NestedCondition> getNACs()
boolean isLhs()
boolean isRhs()
boolean isNestedCondition()
NestedCondition createPAC(String name)
NestedCondition createNAC(String name)
boolean removeNode(Node node)
boolean removeEdge(Edge edge)
boolean removeNestedCondition(NestedCondition nestedCondition)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |