public class BinaryDeviceActivityProcessor extends ExtendedActivityProcessor
Modifier and Type | Field and Description |
---|---|
static int |
SUMMARY_INDICATION_POSITION_OFF
The indication position for BinaryDevice being "off",
meaning stopped, off, closed, etc.
|
static int |
SUMMARY_INDICATION_POSITION_ON
The indication position for BinaryDevice being "on",
meaning started, on, open, etc.
|
SUMMARY_COUNT_POSITION_UPDATED, SUMMARY_INDICATION_POSITION_CREATED, SUMMARY_INDICATION_POSITION_DELETED
Constructor and Description |
---|
BinaryDeviceActivityProcessor()
Constructs a BinaryDeviceActivityProcessor.
|
Modifier and Type | Method and Description |
---|---|
void |
applyActionToActivitySummaryDelta(ActivitySummary deltaSumm,
ActivitySummary parSumm,
Action action)
Apply an Action to an ActivitySummary delta.
|
protected void |
getActivitySummaryCountPositions(List<Integer> countList)
Gets the Count Positions in effect for this class,
by adding them to the specified List.
|
protected void |
getActivitySummaryIndicationPositions(List<Integer> indList)
Gets the Indication Positions in effect for this class,
by adding them to the specified List.
|
void |
initialize(ActivitySpecification spec)
Initialize this instance.
|
boolean |
isBinaryDeviceCreated(ActivitySummary asumm)
Returns the Indication of "BinaryDevice Created".
|
Boolean |
isBinaryDeviceOff(ActivitySummary asumm)
Returns the Indication of the BinaryDevice being "Off".
|
Boolean |
isBinaryDeviceOn(ActivitySummary asumm)
Returns the Indication of the BinaryDevice being "On".
|
calculateOverallActivityLevel, preUpdateDeltaTrackedActivityRecord, preUpdateInclusionTrackedActivityRecord, preUpdatePerformedActivityRecord, preUpdatePerformingTrackedActivityRecord
calculateCompositeActivityLevel, calculateDeltaActivityLevel, calculateInclusionActivityLevel, calculatePerformedActivityLevel, deleteTrackedActivityRecord, getActivitySpecification, getActivitySummaryNumberPositions, getIncludedActors, getIncludedActors, getInstance, getPropertyTable, getSession, getUpdateCount, isCommittedActionProcessingRequired, isCreated, isDeleted, markLastViewedActivitySummaryAsPartiallyRead, markLastViewedActivitySummaryAsRead, postPrivateRecords, processCommittedAction, refreshDeltaActivitySummary, synchronizeOverallActivityLevel, updateActivityRecord, updateInclusionTrackedActivityRecord, updateInclusionTrackedActivityRecord, updatePerformedActivityRecord, updatePerformingTrackedActivityRecord, updateSpecifiedCompositeLevel, updateTrackedActivityRecordLevels, validate, verifyAllowableAction
public static final int SUMMARY_INDICATION_POSITION_ON
public static final int SUMMARY_INDICATION_POSITION_OFF
public BinaryDeviceActivityProcessor()
Called from within ActivitySpecification when initializing the ActivityProcessor to use for that specific ActivitySpecification.
public void initialize(ActivitySpecification spec) throws IfsException
Called immediately after construction (via the default constructor) via reflection within ActivitySpecification.
initialize
in class ActivityProcessor
spec
- The ActivitySpecification for a given implementation.IfsException
- if the operation fails.public boolean isBinaryDeviceCreated(ActivitySummary asumm)
asumm
- the ActivitySummarypublic Boolean isBinaryDeviceOn(ActivitySummary asumm)
asumm
- the ActivitySummary containing the summary of
social activitypublic Boolean isBinaryDeviceOff(ActivitySummary asumm)
asumm
- the ActivitySummary containing the summary of
social activitypublic void applyActionToActivitySummaryDelta(ActivitySummary deltaSumm, ActivitySummary parSumm, Action action) throws IfsException
applyActionToActivitySummaryDelta
in class ActivityProcessor
deltaSumm
- the target ActivitySummary DeltaparSumm
- the target ActivitySummaryaction
- Action to add to the summaryIfsException
- if the operation fails.protected void getActivitySummaryCountPositions(List<Integer> countList)
getActivitySummaryCountPositions
in class ActivityProcessor
countList
- the list that holds the set of Count Positionsprotected void getActivitySummaryIndicationPositions(List<Integer> indList)
getActivitySummaryIndicationPositions
in class ActivityProcessor
indList
- the list that holds the set of Indication PositionsCopyright © 2023. All rights reserved.