public class FollowTheSunPolicy extends AbstractPolicy
AbstractEntityAdjunct.AdjunctTagSupport, AbstractEntityAdjunct.BasicSubscriptionSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
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, isSuspended, relations
config, configure, getAdjunctType, getConfig, getConfigMap, getDisplayName, getUniqueTag, isDestroyed, setConfig, setDisplayName, subscribe, subscribeToChildren, subscribeToMembers, subscriptions, tags, unsubscribe, unsubscribe
getCatalogItemId, getId, getManagementContext, init, rebind, setCatalogItemId, setManagementContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUniqueTag, isDestroyed
getCatalogItemId, getDisplayName, subscriptions, tags
config, getConfig
setCatalogItemId
public 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 AbstractEntityAdjunct
public void suspend()
Policy
suspend
in interface Policy
suspend
in class AbstractPolicy
public void resume()
Policy
resume
in interface Policy
resume
in class AbstractPolicy
public java.lang.String toString()
toString
in class AbstractPolicy