public class FollowTheSunPolicy extends AbstractPolicy
AbstractEntityAdjunct.AdjunctTagSupport
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.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, isSuspended
config, configure, getAllConfig, getConfig, getConfigMap, getDisplayName, getName, getUniqueTag, isDestroyed, setConfig, setDisplayName, setName, tags
getCatalogItemId, getId, getManagementContext, getTagSupport, init, rebind, setCatalogItemId, setManagementContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAllConfig, getConfig, getId, getName, setConfig
getUniqueTag, isDestroyed
getCatalogItemId, getDisplayName, getTagSupport, tags
config
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