|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--au.edu.swin.synergy.plugin.metamodeller.BMetaModel
class BMetaModel
Field Summary | |
static int |
kCircRefRuleViolation
|
static int |
kConnectionRuleViolation
|
protected static String |
kDefaultName
|
protected static String |
kKeyName
|
static int |
kMaxInRuleViolation
|
static int |
kMaxOutRuleViolation
|
static int |
kMaxRuleTypes
|
static int |
kNoRuleViolation
|
static int |
kStartRuleTypes
|
Constructor Summary | |
BMetaModel()
Construct the vectors for the nodes/arcs and rules.. |
Method Summary | |
void |
addMetaArc(BMetaElement theArc)
Please complete the missing tags for addMetaArc |
void |
addMetaNode(BMetaElement theNode)
Please complete the missing tags for addMetaNode |
void |
addMetaRule(BMetaElement theRule)
Please complete the missing tags for addMetaRule |
boolean |
evalCirc(BMetaElement node)
Evaluates wether circular referenceing for a node is allowed |
boolean |
evalConnection(BMetaElement arc,
BMetaElement startNode,
BMetaElement endNode)
Evaluates wether a connection is allowed to exist |
boolean |
evalMaxIn(BMetaElement node,
BMetaElement arc,
int max)
Evaluates wether the current number of connections coming into a node excedes the allowed maximum |
boolean |
evalMaxOut(BMetaElement node,
BMetaElement arc,
int max)
Evaluates wether the current number of connections going out of a node excedes the allowed maximum |
boolean |
evalStartConnection(BMetaElement arc,
BMetaElement startNode)
Evaluates wether a connection is allowed to start.. |
BMetaElement |
getMetaArc(String name)
Please complete the missing tags for getMetaNodes |
int |
getMetaArcIndex(String name)
|
Vector |
getMetaArcs()
Please complete the missing tags for getMetaArcs |
BMetaElement |
getMetaNode(String name)
Please complete the missing tags for getMetaNodes |
int |
getMetaNodeIndex(String name)
|
Vector |
getMetaNodes()
Please complete the missing tags for getMetaNodes |
BMetaElement |
getMetaRule(String name)
Please complete the missing tags for getMetaNodes |
int |
getMetaRuleIndex(String name)
|
Vector |
getMetaRules()
Please complete the missing tags for getMetaRules |
String |
getName()
gets the name of the Meta Model |
boolean |
load(BDataFile file)
|
void |
removeArc(BMetaElement arc)
Removes the meta arc that is passed in from the metamodel |
void |
removeNode(BMetaElement node)
Removes the meta node that is passed in from the metamodel |
void |
removeRule(BMetaElement rule)
Removes the meta rule that is passed in from the metamodel |
boolean |
save(BDataFile file)
|
void |
setArc(BMetaElement oldArc,
BMetaElement newArc)
Sets the meta arc that contains the old arc with the new arc |
void |
setName(String theName)
Please complete the missing tags for setName |
void |
setNode(BMetaElement newNode,
BMetaElement oldNode)
Sets the meta node that contains the old node with the new node |
void |
setRule(BMetaElement oldRule,
BMetaElement newRule)
Sets the meta rule that contains the old rule with the new rule |
void |
setupRules()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int kNoRuleViolation
public static final int kMaxInRuleViolation
public static final int kMaxOutRuleViolation
public static final int kConnectionRuleViolation
public static final int kCircRefRuleViolation
public static final int kStartRuleTypes
public static final int kMaxRuleTypes
protected static final String kKeyName
protected static final String kDefaultName
Constructor Detail |
public BMetaModel()
- Method Detail |
public Vector getMetaNodes()
- public BMetaElement getMetaNode(String name)
- public int getMetaNodeIndex(String name)
public Vector getMetaArcs()
- public BMetaElement getMetaArc(String name)
- public int getMetaArcIndex(String name)
public Vector getMetaRules()
- public BMetaElement getMetaRule(String name)
- public int getMetaRuleIndex(String name)
public void setName(String theName)
- public void addMetaNode(BMetaElement theNode)
- public void addMetaArc(BMetaElement theArc)
- public void addMetaRule(BMetaElement theRule)
- public String getName()
public void setNode(BMetaElement newNode, BMetaElement oldNode)
newNode
- The node that is to replace the old nodeoldNode
- The node that is currently in the meta modelpublic void setArc(BMetaElement oldArc, BMetaElement newArc)
oldArc
- The arc that is currently in the meta modelnewArc
- The node that is to replace the old nodepublic void setRule(BMetaElement oldRule, BMetaElement newRule)
oldRule
- The rule that is currently in the meta modelnewRule
- The rule that is to replace the old rulepublic void removeNode(BMetaElement node)
the
- meta element to be removed form the metamodelpublic void removeArc(BMetaElement arc)
the
- meta element to be removed form the metamodelpublic void removeRule(BMetaElement rule)
the
- meta element to be removed form the metamodelpublic boolean load(BDataFile file)
public boolean save(BDataFile file)
public void setupRules()
public boolean evalMaxIn(BMetaElement node, BMetaElement arc, int max)
node
- the node who's connections are being validatedmax
- the number of connections currently coming into the nodepublic boolean evalMaxOut(BMetaElement node, BMetaElement arc, int max)
node
- the node who's connections are being validatedmax
- the number of connections currently going out of the nodepublic boolean evalConnection(BMetaElement arc, BMetaElement startNode, BMetaElement endNode)
arc
- the type of arc that the connection isstartNode
- the node that the arc connects fromendNode
- the node that the arc connects topublic boolean evalStartConnection(BMetaElement arc, BMetaElement startNode)
arc
- the type of arc that the connection isstartNode
- the node that the arc connects frompublic boolean evalCirc(BMetaElement node)
node
- the node to evaulate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |