Library | Package Java Toolkit

Interface WUnit

package com.ptc.wfc.wfcModel;

public interface WUnit
  extends com.ptc.pfc.pfcUnits.Unit



Description

Provides the info about the Unit.



Method Summary
UnitConversionFactorCalculateUnitConversion (Unit Unit)
     Calculates conversion factors from one ProUnititem to another; these can belong to the same model or two different models.
voidModifyByExpression (String Path)
    Modifies a derived unit.

Methods Inherited from Interface com.ptc.pfc.pfcObject.Child
GetDBParent, GetOId

Methods Inherited from Interface com.ptc.pfc.pfcUnits.Unit
GetName, SetName, GetType, GetIsStandard, GetConversionFactor, GetReferenceUnit, GetExpression, Modify, Delete

Method Detail

ModifyByExpression

voidModifyByExpression (String Path)


    Modifies a derived unit.

Exceptions thrown (but not limited to):

XToolkitCantModify - The unit cannot be modified because it is referenced from the principal system of units or it is referenced from ref_unit.


Manual References:
Solid: Accessing Individual Units
Parameters:
Path
The unit expression.
Returns:


CalculateUnitConversion

UnitConversionFactorCalculateUnitConversion (Unit Unit)


     Calculates conversion factors from one ProUnititem to another; these can belong to the same model or two different models.
Manual References:
Solid: Conversion to a New Unit System, Solid: Conversion to a New Unit System
Parameters:
Unit
 
Returns: