|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jhomenet.server.responsive.ResponsiveManagerImpl
public class ResponsiveManagerImpl
A class that is responsible for managing the sensor response system.
Id: $Id: $
Field Summary | |
---|---|
protected javax.swing.event.EventListenerList |
listenerList
List of listeners |
Constructor Summary | |
---|---|
ResponsiveManagerImpl(SensorResponsiveConfiguration responsiveConfig,
ServerContext serverContext)
Constructor. |
Method Summary | |
---|---|
void |
addOrUpdateCondition(Condition condition)
|
void |
addOrUpdatePlan(Plan plan)
Add a plan to the plan scheduler. |
void |
addOrUpdateResponse(Response response)
|
void |
addOrUpdateTrigger(TriggerWrapper trigger)
Add a trigger to the plan scheduler. |
void |
addResponsiveManagerListener(ResponsiveManagerListener l)
Adds a listener to the list that's notified each time a change to the data model occurs. |
java.util.List<Condition> |
getConditions()
|
Plan |
getPlan(java.lang.String id)
|
java.util.List<Plan> |
getPlans()
|
java.util.List<Response> |
getResponses()
|
ResponsiveExecutor |
getResponsiveExecutor()
|
java.util.List<java.lang.String> |
getTriggerGroups()
|
java.util.List<TriggerWrapper> |
getTriggers()
|
java.util.List<TriggerWrapper> |
getTriggers(java.lang.String id)
|
void |
loadConditions()
|
void |
loadPlans()
Attempt to load the plans from the persistence layer. |
void |
loadResponses()
|
void |
loadTriggers()
|
void |
removeCondition(Condition conditionToRemove)
Remove a condition. |
void |
removePlan(Plan planToRemove)
Remove a plan from the scheduler. |
void |
removeResponse(Response responseToRemove)
|
void |
removeResponsiveManagerListener(ResponsiveManagerListener l)
Removes a listener from the list that's notified each time a change to the data model occurs. |
void |
removeTrigger(TriggerWrapper triggerToRemove)
Remove a trigger from the scheduler. |
void |
schedule(Plan plan,
TriggerWrapper triggerWrapper)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.event.EventListenerList listenerList
Constructor Detail |
---|
public ResponsiveManagerImpl(SensorResponsiveConfiguration responsiveConfig, ServerContext serverContext)
responsiveConfig
- Method Detail |
---|
public ResponsiveExecutor getResponsiveExecutor()
jhomenet.commons.responsive.ResponsiveManager#getResponsiveExecutor()
public void addOrUpdateCondition(Condition condition)
condition
- public void removeCondition(Condition conditionToRemove)
conditionToRemove
- A reference to the condition to removepublic java.util.List<Condition> getConditions()
public void loadConditions() throws ResponsiveException
ResponsiveException
jhomenet.commons.responsive.ResponsiveManager#loadConditions()
public void addOrUpdateResponse(Response response)
jhomenet.commons.responsive.ResponsiveManager#addOrUpdateResponse(jhomenet.commons.responsive.response.Response)
public void removeResponse(Response responseToRemove)
jhomenet.commons.responsive.ResponsiveManager#removeResponse(jhomenet.commons.responsive.response.Response)
public java.util.List<Response> getResponses()
jhomenet.commons.responsive.ResponsiveManager#getResponses()
public void loadResponses() throws ResponsiveException
ResponsiveException
jhomenet.commons.responsive.ResponsiveManager#loadResponses()
public void addOrUpdatePlan(Plan plan)
plan
- Reference to the plan to addpublic void removePlan(Plan planToRemove)
planToRemove
- A reference to the plan to removepublic java.util.List<Plan> getPlans()
public void loadPlans() throws ResponsiveException
ResponsiveException
public void addOrUpdateTrigger(TriggerWrapper trigger)
trigger
- Reference to the trigger to addpublic void removeTrigger(TriggerWrapper triggerToRemove)
triggerToRemove
- Trigger to removepublic java.util.List<TriggerWrapper> getTriggers()
public void loadTriggers() throws ResponsiveException
ResponsiveException
jhomenet.commons.responsive.ResponsiveManager#loadTriggers()
public java.util.List<java.lang.String> getTriggerGroups()
jhomenet.commons.responsive.ResponsiveManager#getTriggerGroups()
public final void schedule(Plan plan, TriggerWrapper triggerWrapper) throws ResponsiveException
ResponsiveException
jhomenet.commons.responsive.ResponsiveManager#schedule(jhomenet.commons.responsive.plan.Plan, jhomenet.commons.responsive.trigger.TriggerWrapper)
public Plan getPlan(java.lang.String id)
jhomenet.commons.responsive.ResponsiveManager#getPlan(java.lang.String)
public java.util.List<TriggerWrapper> getTriggers(java.lang.String id)
jhomenet.commons.responsive.ResponsiveManager#getTriggers(java.lang.String)
public void addResponsiveManagerListener(ResponsiveManagerListener l)
l
- the ResponsvieManagerListenerpublic void removeResponsiveManagerListener(ResponsiveManagerListener l)
l
- the ResponsiveManagerListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |