projects
/
smartthings-infrastructure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A change in location class for sunset/sunrise event + Adding appList for dimmer's...
[smartthings-infrastructure.git]
/
Lock
/
Locks.groovy
diff --git
a/Lock/Locks.groovy
b/Lock/Locks.groovy
index 626b2448690854c9228f8f79e3221100bef18afa..ad297ab8ed2512c5740582a8fd28324443e5bdff 100644
(file)
--- a/
Lock/Locks.groovy
+++ b/
Lock/Locks.groovy
@@
-2,9
+2,6
@@
package Lock
import Timer.SimulatedTimer
package Lock
import Timer.SimulatedTimer
-//JPF's Verify API
-import gov.nasa.jpf.vm.Verify
-
public class Locks{
int deviceNumbers
List locks
public class Locks{
int deviceNumbers
List locks
@@
-19,21
+16,20
@@
public class Locks{
private String currentLock = "locked"
private String lockLatestValue = "locked"
private String currentLock = "locked"
private String lockLatestValue = "locked"
- Locks(Closure sendEvent, int deviceNumbers) {
+ Locks(Closure sendEvent, int deviceNumbers
, boolean init
) {
this.sendEvent = sendEvent
this.timers = new SimulatedTimer()
this.deviceNumbers = deviceNumbers
this.locks = []
this.sendEvent = sendEvent
this.timers = new SimulatedTimer()
this.deviceNumbers = deviceNumbers
this.locks = []
- def init = Verify.getBoolean()
if (init) {
this.lockState = "locked"
if (init) {
this.lockState = "locked"
-
this.currentLock = "locked"
-
this.lockLatestValue = "locked"
+ this.currentLock = "locked"
+ this.lockLatestValue = "locked"
} else {
this.lockState = "unlocked"
} else {
this.lockState = "unlocked"
-
this.currentLock = "unlocked"
-
this.lockLatestValue = "unlocked"
+ this.currentLock = "unlocked"
+ this.lockLatestValue = "unlocked"
}
locks.add(new Lock(sendEvent,id, label, displayName, this.lockState, this.lockLatestValue))
}
}
locks.add(new Lock(sendEvent,id, label, displayName, this.lockState, this.lockLatestValue))
}