org.yawlfoundation.yawl.cost.data
Class UnitCost

java.lang.Object
  extended by org.yawlfoundation.yawl.cost.data.UnitCost

public class UnitCost
extends Object

A unit of measure against which a cost may be allocated. Examples may be hour, week, month, litre, tonne.

Author:
Michael Adams
Created/Last Date:
3/10/11

Constructor Summary
  UnitCost()
           
  UnitCost(String unit)
           
protected UnitCost(XNode node)
           
 
Method Summary
 void fromXML(String xml)
           
 void fromXNode(XNode node)
           
 double getCostPerMSec(Map<String,String> dataMap)
           
 CostValue getCostValue()
           
 FacetStatus getDuration()
           
 String getUnit()
           
 void setCostValue(CostValue value)
           
 void setUnit(String u)
           
 String toXML()
           
 XNode toXNode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitCost

public UnitCost()

UnitCost

public UnitCost(String unit)

UnitCost

protected UnitCost(XNode node)
Method Detail

getUnit

public String getUnit()

setUnit

public void setUnit(String u)

getDuration

public FacetStatus getDuration()

getCostValue

public CostValue getCostValue()

setCostValue

public void setCostValue(CostValue value)

getCostPerMSec

public double getCostPerMSec(Map<String,String> dataMap)

toXNode

public XNode toXNode()

toXML

public String toXML()

fromXNode

public void fromXNode(XNode node)

fromXML

public void fromXML(String xml)


Copyright © 2004-2012 The YAWL Foundation.