|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.upb.hni.vmagic.VhdlElement
de.upb.hni.vmagic.type.Type
de.upb.hni.vmagic.type.PhysicalType
public class PhysicalType
Physical type.
Nested Class Summary | |
---|---|
static class |
PhysicalType.Unit
A unit in a physical type. |
Constructor Summary | |
---|---|
PhysicalType(java.lang.String identifier,
RangeProvider range,
java.lang.String primaryUnit)
Creates a physical type. |
Method Summary | |
---|---|
PhysicalType.Unit |
createUnit(java.lang.String identifier,
AbstractLiteral factor,
java.lang.String baseUnit)
Creates a unit and adds it to this physical type. |
PhysicalType.Unit |
createUnit(java.lang.String identifier,
int factor,
java.lang.String baseUnit)
Creates a unit with a integer factor and adds it to this physical type. |
PhysicalType.Unit |
createUnit(java.lang.String identifier,
java.lang.String baseUnit)
Creates a unit without a factor and adds it to this physical type. |
java.lang.String |
getPrimaryUnit()
Returns the identifier of the primary unit. |
RangeProvider |
getRange()
Returns the range of this physical type. |
java.util.List<PhysicalType.Unit> |
getUnits()
Returns the list of units. |
void |
setPrimaryUnit(java.lang.String primaryUnit)
Sets the identifier of the primary unit. |
void |
setRange(RangeProvider range)
Sets the range of this physical type. |
Methods inherited from class de.upb.hni.vmagic.type.Type |
---|
getIdentifier, setIdentifier |
Methods inherited from class de.upb.hni.vmagic.VhdlElement |
---|
getParent, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PhysicalType(java.lang.String identifier, RangeProvider range, java.lang.String primaryUnit)
identifier
- the identifier of this typerange
- the rangeprimaryUnit
- the primary unit identifierMethod Detail |
---|
public java.lang.String getPrimaryUnit()
public void setPrimaryUnit(java.lang.String primaryUnit)
primaryUnit
- the identifier of the primary unitpublic RangeProvider getRange()
public void setRange(RangeProvider range)
range
- the rangepublic java.util.List<PhysicalType.Unit> getUnits()
public PhysicalType.Unit createUnit(java.lang.String identifier, AbstractLiteral factor, java.lang.String baseUnit)
identifier
- the unit's identifierfactor
- the factorbaseUnit
- the base unit
public PhysicalType.Unit createUnit(java.lang.String identifier, int factor, java.lang.String baseUnit)
identifier
- the unit's identifierfactor
- the factorbaseUnit
- the base unit
public PhysicalType.Unit createUnit(java.lang.String identifier, java.lang.String baseUnit)
identifier
- the unit's identifierbaseUnit
- the base unit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |