Class AC.data.ContributionChildCounterNode
Defines the contribution counter nodes.
Defined in: Utility.js.
Constructor Attributes | Constructor Name and Description |
---|---|
AC.data.ContributionChildCounterNode(contributionChildCounter, contributionId, thumbprints, superiorNode)
Default constructor.
|
Method Attributes | Method Name and Description |
---|---|
createChild(msg)
Creates a child contribution counter node with the configuration of the specified message.
|
|
deleteChild(msg)
Deletes the child node specified in the message by invoking the destroy function on the node.
|
|
destroy(msg)
Destroys this node.
|
|
findChildById(id)
Looks up a child node with the specified id in the list of subordinates.
|
|
isMove(msg)
Checks if the action specified by the message is a move, instead of a delete, message.
|
|
thumbprinted(msg)
Thumbprints this node upon receipt of a thumbprint message.
|
Class Detail
AC.data.ContributionChildCounterNode(contributionChildCounter, contributionId, thumbprints, superiorNode)
Default constructor.
- Parameters:
- contributionChildCounter
- the child counter
- contributionId
- the contribution id
- thumbprints
- the thumbprints
- superiorNode
- the superior of this node
Method Detail
createChild(msg)
Creates a child contribution counter node with the configuration of the specified message.
- Parameters:
- msg
- the message
- Returns:
- void
deleteChild(msg)
Deletes the child node specified in the message by invoking the destroy function on the node.
- Parameters:
- msg
- the message
- Returns:
- void
destroy(msg)
Destroys this node.
- Parameters:
- msg
- the message
- Returns:
- void
findChildById(id)
Looks up a child node with the specified id in the list of subordinates.
- Parameters:
- id
- the contributon id
- Returns:
- the subordinate node with the specified id or null if no such node is found
isMove(msg)
Checks if the action specified by the message is a move, instead of a delete, message.
- Parameters:
- msg
- the message
- Returns:
- true if the delete is part of a move or false otherwise
thumbprinted(msg)
Thumbprints this node upon receipt of a thumbprint message.
- Parameters:
- msg
- the message
- Returns:
- void