public abstract class ChangeableMembrane extends Membrane
Constructor and Description |
---|
ChangeableMembrane(Label label)
Creates a new ChangeableMembrane instance which charge is 0
|
ChangeableMembrane(Label label,
byte charge)
Creates a new ChangeableMembrane instance
|
ChangeableMembrane(Label label,
byte charge,
MultiSet<java.lang.String> multiSet) |
Modifier and Type | Method and Description |
---|---|
abstract void |
dissolve()
Dissolves the membrane
|
abstract ChangeableMembrane |
divide()
Divides the membrane and returns the newly obtained membrane
|
int |
getId()
Gets the ID of the membrane, a unique identifier for it
|
MultiSet<java.lang.String> |
getMultiSet()
Gets the membrane multiset
|
void |
setCharge(byte charge)
Sets the membrane charge
|
equals, getCharge, getChargeSymbol, getLabel, getLabelObj, hashCode, toString
public ChangeableMembrane(Label label, byte charge, MultiSet<java.lang.String> multiSet)
public ChangeableMembrane(Label label, byte charge)
label
- the label of the ChangeableMembrane instance to createcharge
- the charge of the ChangeableMembrane instance to createpublic ChangeableMembrane(Label label)
label
- the label of the ChangeableMembrane instance to createpublic MultiSet<java.lang.String> getMultiSet()
getMultiSet
in class Membrane
public abstract void dissolve() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if dissolution is no supportedpublic abstract ChangeableMembrane divide() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
- if division is no supportedpublic final void setCharge(byte charge)
charge
- the charge to be setpublic final int getId()