|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcn.plinguacore.util.psystem.Psystem
public abstract class Psystem
An abstract class for a P System
| Constructor Summary | |
|---|---|
Psystem()
The constructor |
|
| Method Summary | |
|---|---|
boolean |
addRule(Rule r)
adds a rule to the existing rule set |
java.util.Iterator<AlphabetObject> |
alphabetIterator()
Returns an iterator over the alphabet |
ISimulator |
createSimulator(boolean stepBackSupported,
boolean alternativeStepsSupported)
Creates a simulator to simulate this P-system. |
ISimulator |
createSimulator(boolean stepBackSupported,
boolean alternativeStepsSupported,
java.lang.String id)
Creates a simulator to simulate this P-system. |
IPsystemFactory |
getAbstractPsystemFactory()
Gets the current AbstractPsystemFactory instance |
java.util.SortedSet<AlphabetObject> |
getAlphabet()
Returns the P-system alphabet |
abstract Configuration |
getFirstConfiguration()
|
java.util.Map<java.lang.String,MultiSet<java.lang.String>> |
getInitialMultiSets()
Returns the initial P-system multisets |
abstract java.util.Collection<? extends Membrane> |
getMembranes()
|
RulesSet |
getRules()
|
java.util.Iterator<java.lang.String> |
getSimulatorsIDs()
Gets an iterator on all possible simulators IDs for the Psystem |
void |
setAbstractPsystemFactory(IPsystemFactory apf)
Sets an specific instance of PsystemFactotyInterface as the current factory to be used |
boolean |
supportsAlternativeStep(java.lang.String id)
Returns a boolean representing if the simulator related to id could be created capable of performing alternative steps |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Psystem()
| Method Detail |
|---|
public void setAbstractPsystemFactory(IPsystemFactory apf)
throws PlinguaCoreException
apf - the PsystemFactoryInterface instance to be held
PlinguaCoreException - if any error ocurred during the instantiation of the
CreateSimulator instancepublic IPsystemFactory getAbstractPsystemFactory()
public java.util.Map<java.lang.String,MultiSet<java.lang.String>> getInitialMultiSets()
public java.util.SortedSet<AlphabetObject> getAlphabet()
public java.util.Iterator<AlphabetObject> alphabetIterator()
public RulesSet getRules()
public boolean addRule(Rule r)
r - the rule to be added
public abstract java.util.Collection<? extends Membrane> getMembranes()
public abstract Configuration getFirstConfiguration()
public java.lang.String toString()
toString in class java.lang.Object
public ISimulator createSimulator(boolean stepBackSupported,
boolean alternativeStepsSupported,
java.lang.String id)
throws PlinguaCoreException
stepBackSupported - sets if the simulator created supports steps backalternativeStepsSupported - sets if the simulator created supports alternate stepsid - the Simulator id which references the specific Simulator class
to be instantiated
PlinguaCoreException - if there are rules which doesn't match the model
specification previously defined by setting the
AbstractPsystemFactory instance
public ISimulator createSimulator(boolean stepBackSupported,
boolean alternativeStepsSupported)
throws PlinguaCoreException
stepBackSupported - sets if the simulator created supports steps backalternativeStepsSupported - sets if the simulator created supports alternate steps
PlinguaCoreException - if there are rules which doesn't match the model
specification previously defined by setting the
AbstractPsystemFactory instance
public java.util.Iterator<java.lang.String> getSimulatorsIDs()
throws PlinguaCoreException
PlinguaCoreException - if the simulators IDs provider hasn't set yet
public boolean supportsAlternativeStep(java.lang.String id)
throws PlinguaCoreException
id - the simulator identifier
PlinguaCoreException - if the simulators IDs provider hasn't set yet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||