public class FollowTheSunPolicy extends AbstractPolicy
AbstractEntityAdjunct.AdjunctTagSupportBrooklynObject.TagSupportConfigurable.ConfigurationSupportBrooklynObjectInternal.ConfigurationSupportInternal| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
FollowTheSunPolicy(AttributeSensor itemUsageMetric,
FollowTheSunModel<Entity,Movable> model,
FollowTheSunParameters parameters) |
FollowTheSunPolicy(java.util.Map props,
AttributeSensor itemUsageMetric,
FollowTheSunModel<Entity,Movable> model,
FollowTheSunParameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
resume()
Resume the policy
|
void |
setEntity(EntityLocal entity) |
void |
suspend()
Suspend the policy
|
java.lang.String |
toString() |
destroy, getPolicyType, getRebindSupport, isRunning, isSuspendedconfig, configure, getAllConfig, getConfig, getConfigMap, getDisplayName, getName, getUniqueTag, isDestroyed, setConfig, setDisplayName, setName, tagsgetCatalogItemId, getId, getManagementContext, getTagSupport, init, rebind, setCatalogItemId, setManagementContextequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllConfig, getConfig, getId, getName, setConfiggetUniqueTag, isDestroyedgetCatalogItemId, getDisplayName, getTagSupport, tagsconfigsetCatalogItemIdpublic static final java.lang.String NAME
public FollowTheSunPolicy(AttributeSensor itemUsageMetric, FollowTheSunModel<Entity,Movable> model, FollowTheSunParameters parameters)
public FollowTheSunPolicy(java.util.Map props,
AttributeSensor itemUsageMetric,
FollowTheSunModel<Entity,Movable> model,
FollowTheSunParameters parameters)
public void setEntity(EntityLocal entity)
setEntity in class AbstractEntityAdjunctpublic void suspend()
Policysuspend in interface Policysuspend in class AbstractPolicypublic void resume()
Policyresume in interface Policyresume in class AbstractPolicypublic java.lang.String toString()
toString in class AbstractPolicy