public abstract class AbstractOperation extends Object implements Operation, Serializable
Constructor and Description |
---|
AbstractOperation() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canRun()
Checks if all prerequisiting fields do exist or can be provided by a subsequent
operation.
|
abstract int[] |
execute(int[] id)
Executes the operation and sets at least the provided set of id.
|
IdentityBlock |
getIdentity() |
UsagePeriod |
getUsagePeriod() |
boolean |
isInUsagePeriod()
Checks if the operation is within its usage period.
|
void |
setInternalPayload(InternalPayloadSpace payload)
Puts a payload int the workspace.
|
UsagePeriod |
setUsagePeriod(UsagePeriod period)
Sets the usage period of the respective operation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputId, getOutputId
public void setInternalPayload(InternalPayloadSpace payload)
Puts a payload int the workspace.
setInternalPayload
in interface Operation
payload
- the internal payload of an identity to be registered within its workspacepublic abstract boolean canRun()
Operation
Checks if all prerequisiting fields do exist or can be provided by a subsequent operation.
public IdentityBlock getIdentity()
getIdentity
in interface Operation
public UsagePeriod getUsagePeriod()
public UsagePeriod setUsagePeriod(UsagePeriod period)
Sets the usage period of the respective operation.
After expiry the accounting layer will remove this operation
period
- the usage period in which the operation is validpublic boolean isInUsagePeriod()
Checks if the operation is within its usage period.
This method is called by the accounting layer when searching for expired operations.
isInUsagePeriod
in interface Operation
public abstract int[] execute(int[] id)
Operation
Executes the operation and sets at least the provided set of id.
This operation might trigger to execute prerequisiting operations.
Copyright © 2023. All rights reserved.