public class DefaultDomainModelElectricity extends AbstractDomainModel
EnergyCarrier
Electricity.Modifier and Type | Class and Description |
---|---|
static class |
DefaultDomainModelElectricity.CurrentType |
static class |
DefaultDomainModelElectricity.Phase |
static class |
DefaultDomainModelElectricity.PowerType |
idDomainModel
Constructor and Description |
---|
DefaultDomainModelElectricity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(AbstractDomainModel domainModel)
Checks if the specified instance is equal.
|
DefaultDomainModelElectricity.CurrentType |
getCurrentType()
Gets the current type.
|
int |
getFrequency()
Gets the frequency.
|
DomainModelInterface |
getJPanelConfiguration()
Should return a
JPanel that implements a DomainModelInterface
that can be used for the visual configuration of the domain model. |
DefaultDomainModelElectricity.Phase |
getPhase()
Gets the phase.
|
DefaultDomainModelElectricity.PowerType |
getPowerType()
Gets the power type.
|
double |
getRatedVoltage()
Gets the rated voltage.
|
void |
setCurrentType(DefaultDomainModelElectricity.CurrentType currentType)
Sets the current type.
|
void |
setFrequency(int frequency)
Sets the frequency.
|
void |
setPhase(DefaultDomainModelElectricity.Phase phase)
Sets the phase.
|
void |
setPowerType(DefaultDomainModelElectricity.PowerType powerType)
Sets the power type.
|
void |
setRatedVoltage(double ratedVoltage)
Sets the rated voltage.
|
java.lang.String |
toString() |
equals, getIdDomainModel, setIdDomainModel
public DefaultDomainModelElectricity.CurrentType getCurrentType()
public void setCurrentType(DefaultDomainModelElectricity.CurrentType currentType)
currentType
- the currentType to setpublic double getRatedVoltage()
public void setRatedVoltage(double ratedVoltage)
ratedVoltage
- the ratedVoltage to setpublic int getFrequency()
public void setFrequency(int frequency)
frequency
- the frequency to setpublic DefaultDomainModelElectricity.Phase getPhase()
public void setPhase(DefaultDomainModelElectricity.Phase phase)
phase
- the new phasepublic DefaultDomainModelElectricity.PowerType getPowerType()
public void setPowerType(DefaultDomainModelElectricity.PowerType powerType)
powerType
- the new power typepublic DomainModelInterface getJPanelConfiguration()
AbstractDomainModel
JPanel
that implements a DomainModelInterface
that can be used for the visual configuration of the domain model.getJPanelConfiguration
in class AbstractDomainModel
DomainModelInterface
public boolean equals(AbstractDomainModel domainModel)
AbstractDomainModel
equals
in class AbstractDomainModel
domainModel
- the domain modelpublic java.lang.String toString()
toString
in class AbstractDomainModel