public class VacuumdConfiguration extends Object implements Serializable
Constructor and Description |
---|
VacuumdConfiguration() |
VacuumdConfiguration(int period,
List<Statement> statements,
Automations automations,
Triggers triggers,
Actions actions,
AutoEvents autoEvents,
ActionEvents actionEvents) |
Modifier and Type | Method and Description |
---|---|
void |
addStatement(int index,
Statement vStatement) |
void |
addStatement(Statement vStatement) |
Enumeration<Statement> |
enumerateStatement()
Method enumerateStatement.
|
boolean |
equals(Object obj)
Overrides the Object.equals method.
|
ActionEvents |
getActionEvents()
Returns the value of field 'actionEvents'.
|
Actions |
getActions()
Returns the value of field 'actions'.
|
AutoEvents |
getAutoEvents()
Returns the value of field 'autoEvents'.
|
Automations |
getAutomations()
Returns the value of field 'automations'.
|
int |
getPeriod()
Returns the value of field 'period'.
|
Statement[] |
getStatement()
Method getStatement.Returns the contents of the collection in an Array.
|
Statement |
getStatement(int index)
Method getStatement.
|
List<Statement> |
getStatementCollection()
Method getStatementCollection.Returns a reference to '_statementList'.
|
int |
getStatementCount()
Method getStatementCount.
|
Triggers |
getTriggers()
Returns the value of field 'triggers'.
|
int |
hashCode()
Overrides the Object.hashCode method.
|
Iterator<Statement> |
iterateStatement()
Method iterateStatement.
|
void |
removeAllStatement() |
boolean |
removeStatement(Statement vStatement)
Method removeStatement.
|
Statement |
removeStatementAt(int index)
Method removeStatementAt.
|
void |
setActionEvents(ActionEvents actionEvents)
Sets the value of field 'actionEvents'.
|
void |
setActions(Actions actions)
Sets the value of field 'actions'.
|
void |
setAutoEvents(AutoEvents autoEvents)
Sets the value of field 'autoEvents'.
|
void |
setAutomations(Automations automations)
Sets the value of field 'automations'.
|
void |
setPeriod(int period)
Sets the value of field 'period'.
|
void |
setStatement(int index,
Statement vStatement) |
void |
setStatement(List<Statement> vStatementList)
Sets the value of '_statementList' by copying the given Vector.
|
void |
setStatement(Statement[] vStatementArray) |
void |
setTriggers(Triggers triggers)
Sets the value of field 'triggers'.
|
public VacuumdConfiguration()
public VacuumdConfiguration(int period, List<Statement> statements, Automations automations, Triggers triggers, Actions actions, AutoEvents autoEvents, ActionEvents actionEvents)
public void addStatement(Statement vStatement) throws IndexOutOfBoundsException
vStatement
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addStatement(int index, Statement vStatement) throws IndexOutOfBoundsException
index
- vStatement
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Enumeration<Statement> enumerateStatement()
public boolean equals(Object obj)
public ActionEvents getActionEvents()
public Actions getActions()
public AutoEvents getAutoEvents()
public Automations getAutomations()
public int getPeriod()
public Statement getStatement(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Statement[] getStatement()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Statement> getStatementCollection()
public int getStatementCount()
public Triggers getTriggers()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public Iterator<Statement> iterateStatement()
public void removeAllStatement()
public boolean removeStatement(Statement vStatement)
vStatement
- public Statement removeStatementAt(int index)
index
- public void setActionEvents(ActionEvents actionEvents)
actionEvents
- the value of field 'actionEvents'.public void setActions(Actions actions)
actions
- the value of field 'actions'.public void setAutoEvents(AutoEvents autoEvents)
autoEvents
- the value of field 'autoEvents'.public void setAutomations(Automations automations)
automations
- the value of field 'automations'.public void setPeriod(int period)
period
- the value of field 'period'.public void setStatement(int index, Statement vStatement) throws IndexOutOfBoundsException
index
- vStatement
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setStatement(Statement[] vStatementArray)
vStatementArray
- public void setStatement(List<Statement> vStatementList)
vStatementList
- the Vector to copy.public void setTriggers(Triggers triggers)
triggers
- the value of field 'triggers'.Copyright © 2016. All rights reserved.