|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.mws.mam.Fund
class Fund
An fund is a container for a time-bounded reference currency called credits for which the usage is restricted by constraints that define how the credits must be used. Much like with a bank, an fund is a repository for these resource or service credits which are added through deposits and debited through withdrawals and charges. Each fund has a set of constraints designating which entities (such as Users, Accounts, Machines, Classes, Organizations, etc.) may access the fund or for which aspects of usage the funds are intended (QualityOfService, GeographicalArea, Feature, etc.). Fund constraints may also be negated with an exclamation point leading the constraint value.
When credits are deposited into an fund, they are associated with a time period within which they are valid. These time-bounded pools of credits are known as allocations. (An allocation is a pool of billable units associated with an fund for use during a particular time period.) By using multiple allocations that expire in regular intervals it is possible to implement a use-it-or-lose-it policy and establish an allocation cycle.
Funds may be nested. Hierarchically nested funds may be useful for the delegation of management roles and responsibilities. Deposit shares may be established that assist to automate a trickle-down effect for funds deposited at higher level funds. Additionally, an optional overflow feature allows charges against lower level funds to trickle up the hierarchy.
Funds may have an arbitrary name which is not necessarily unique for the fund. Funds may also have a priority which will influence the order of fund selection when charging.
Field Summary | |
---|---|
private Set |
allocations
(Allocation collection) The allocations associated with this fund. |
private BigDecimal |
amount
The sum of active allocation amounts within this fund. |
private Date |
creationTime
Date this fund was created. |
private BigDecimal |
creditLimit
The sum of active credit limits within this fund. |
private BigDecimal |
deposited
The total amount deposited in active allocations. |
private String |
description
The fund description. |
private Set |
fundConstraints
(FundConstraint collection) Constraints on fund usage. |
private Long |
id
The unique fund identifier. |
private Date |
modificationTime
The date this fund was last modified. |
private String |
name
The name of this fund. |
private Integer |
priority
The fund priority. |
Constructor Summary | |
Fund()
|
Method Summary | |
---|---|
Set
|
getAllocations()
(Allocation collection) The allocations associated with this fund. |
BigDecimal
|
getAmount()
The sum of active allocation amounts within this fund. |
Date
|
getCreationTime()
Date this fund was created. |
BigDecimal
|
getCreditLimit()
The sum of active credit limits within this fund. |
BigDecimal
|
getDeposited()
The total amount deposited in active allocations. |
String
|
getDescription()
The fund description. |
Set
|
getFundConstraints()
(FundConstraint collection) Constraints on fund usage. |
Long
|
getId()
The unique fund identifier. |
Date
|
getModificationTime()
The date this fund was last modified. |
String
|
getName()
The name of this fund. |
Integer
|
getPriority()
The fund priority. |
void
|
setAllocations(Set allocations)
(Allocation collection) The allocations associated with this fund. |
void
|
setAmount(BigDecimal amount)
The sum of active allocation amounts within this fund. |
void
|
setCreationTime(Date creationTime)
Date this fund was created. |
void
|
setCreditLimit(BigDecimal creditLimit)
The sum of active credit limits within this fund. |
void
|
setDeposited(BigDecimal deposited)
The total amount deposited in active allocations. |
void
|
setDescription(String description)
The fund description. |
void
|
setFundConstraints(Set fundConstraints)
(FundConstraint collection) Constraints on fund usage. |
void
|
setId(Long id)
The unique fund identifier. |
void
|
setModificationTime(Date modificationTime)
The date this fund was last modified. |
void
|
setName(String name)
The name of this fund. |
void
|
setPriority(Integer priority)
The fund priority. |
String
|
toString()
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
private Set allocations
private BigDecimal amount
private Date creationTime
private BigDecimal creditLimit
private BigDecimal deposited
private String description
private Set fundConstraints
private Long id
private Date modificationTime
private String name
private Integer priority
Constructor Detail |
---|
Fund()
Method Detail |
---|
Set getAllocations()
BigDecimal getAmount()
Date getCreationTime()
BigDecimal getCreditLimit()
BigDecimal getDeposited()
String getDescription()
Set getFundConstraints()
Long getId()
Date getModificationTime()
String getName()
Integer getPriority()
void setAllocations(Set allocations)
void setAmount(BigDecimal amount)
void setCreationTime(Date creationTime)
void setCreditLimit(BigDecimal creditLimit)
void setDeposited(BigDecimal deposited)
void setDescription(String description)
void setFundConstraints(Set fundConstraints)
void setId(Long id)
void setModificationTime(Date modificationTime)
void setName(String name)
void setPriority(Integer priority)
String toString()
Groovy Documentation