de.upb.hni.vmagic.type
Class PhysicalType.Unit

java.lang.Object
  extended by de.upb.hni.vmagic.type.PhysicalType.Unit
All Implemented Interfaces:
NamedEntity
Enclosing class:
PhysicalType

public static class PhysicalType.Unit
extends java.lang.Object
implements NamedEntity

A unit in a physical type.


Method Summary
 java.lang.String getBaseUnit()
          Returns the base unit of this unit.
 AbstractLiteral getFactor()
          Returns the factor.
 java.lang.String getIdentifier()
          Returns the identifier of this unit.
 void setBaseUnit(java.lang.String baseUnit)
          Sets the base unit of this unit.
 void setFactor(AbstractLiteral factor)
          Sets the factor.
 void setIdentifier(java.lang.String identifier)
          Sets the identifier of this unit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBaseUnit

public java.lang.String getBaseUnit()
Returns the base unit of this unit.

Returns:
the base unit

setBaseUnit

public void setBaseUnit(java.lang.String baseUnit)
Sets the base unit of this unit.

Parameters:
baseUnit - the base unit

getFactor

public AbstractLiteral getFactor()
Returns the factor.

Returns:
the factor

setFactor

public void setFactor(AbstractLiteral factor)
Sets the factor.

Parameters:
factor - the factor

getIdentifier

public java.lang.String getIdentifier()
Returns the identifier of this unit.

Specified by:
getIdentifier in interface NamedEntity
Returns:
the identifier

setIdentifier

public void setIdentifier(java.lang.String identifier)
Sets the identifier of this unit.

Parameters:
identifier - the identifier