Constructor and Description |
---|
Model() |
Modifier and Type | Method and Description |
---|---|
void |
addRule(Rule rule)
Adds a Rule to this Model.
|
String |
asString()
Create a model string that can be directly interpreted by the parser.
|
void |
clear() |
List<Rule> |
getRules() |
void |
removeRule(Rule rule)
Removes a Rule from this Model.
|
String |
toString() |
public void addRule(Rule rule)
IllegalArgumentException
- if the Rule is already in this Model.public void removeRule(Rule rule)
IllegalArgumentException
- if the Rule is not in this Model.public void clear()
public String asString()
Copyright © 2020 University of California, Santa Cruz. All rights reserved.