Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SteveyO/Hue-Emulator
/ functions
Functions
476 in github.com/SteveyO/Hue-Emulator
⨍
Functions
476
◇
Types & classes
53
↓ 117 callers
Method
putOpt
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null. @param key A key string. @param value
src/org/json/JSONObject.java:1174
↓ 75 callers
Method
equals
Returns true if the point's coordinates equal (x,y)
src/com/hueemulator/utils/PointF.java:48
↓ 67 callers
Method
get
Get the object value associated with an index. @param index The index must be between 0 and length() - 1. @return An object value. @throws
src/org/json/JSONArray.java:191
↓ 63 callers
Method
put
Append a boolean value. This increases the array's length by one. @param value A boolean value. @return this.
src/org/json/JSONArray.java:583
↓ 38 callers
Method
length
Get the number of elements in the JSONArray, included nulls. @return The length (or size).
src/org/json/JSONArray.java:376
↓ 37 callers
Method
put
Put a key/boolean pair in the JSONObject. @param key A key string. @param value A boolean which is the value. @return this. @th
src/org/json/JSONObject.java:1027
↓ 36 callers
Method
addTextToConsole
(String text, Color textColour, boolean appendText)
src/com/hueemulator/emulator/Controller.java:209
↓ 29 callers
Method
toString
Make a JSON text of this JSONArray. For compactness, no unnecessary whitespace is added. If it is not possible to produce a syntactically correct JSON
src/org/json/JSONArray.java:855
↓ 27 callers
Method
write
Write the contents of the JSONObject as JSON text to a writer. For compactness, no whitespace is added. <p> Warning: This method assumes that the data
src/org/json/JSONObject.java:1532
↓ 25 callers
Method
getSchedules
()
src/com/hueemulator/model/PHBridgeConfiguration.java:35
↓ 25 callers
Method
toString
Make a JSON text of this JSONObject. For compactness, no whitespace is added. If this would not result in a syntactically correct JSON text, then null
src/org/json/JSONObject.java:1385
↓ 24 callers
Method
set
Set the point's x and y coordinates
src/com/hueemulator/utils/PointF.java:22
↓ 23 callers
Method
next
Get the next character in the source string. @return The next character, or 0 if past the end of the source string.
src/org/json/JSONTokener.java:148
↓ 23 callers
Method
write
Write the contents of the JSONArray as JSON text to a writer. For compactness, no whitespace is added. <p> Warning: This method assumes that the data
src/org/json/JSONArray.java:891
↓ 22 callers
Method
getMenuBar
()
src/com/hueemulator/gui/View.java:83
↓ 22 callers
Method
optString
Get an optional string associated with a key. It returns an empty string if there is no such key. If the value is not a string and is not null, then i
src/org/json/JSONObject.java:951
↓ 20 callers
Method
equals
(Object obj)
src/org/json/JSONObject.java:1632
↓ 20 callers
Method
getLights
()
src/com/hueemulator/model/PHScenesEntry.java:29
↓ 18 callers
Method
showResponseJson
()
src/com/hueemulator/emulator/Controller.java:405
↓ 17 callers
Method
append
Append values to the array under a key. If the key does not exist in the JSONObject, then the key is put in the JSONObject with its value being a JSON
src/org/json/JSONObject.java:406
↓ 17 callers
Method
getGroups
()
src/com/hueemulator/model/PHBridgeConfiguration.java:55
↓ 16 callers
Method
toString
()
src/com/hueemulator/model/PHLightState.java:219
↓ 15 callers
Method
doPutOrPost
(String url, String jsonString, String requestMethod)
tests/com/hueemulator/emulator/HttpTester.java:53
↓ 14 callers
Method
get
Get the value object associated with a key. @param key A key string. @return The object associated with the key. @throws JSONException
src/org/json/JSONObject.java:457
↓ 14 callers
Method
jsonsArrayEqual
Tests two JSON strings for equality by performing a deep comparison. @param json1 represents a JSON object to compare with json2 @param json2 represe
tests/com/hueemulator/lighting/utils/TestUtils.java:91
↓ 14 callers
Method
quote
Produce a string in double quotes with backslash sequences in all the right places. A backslash will be inserted within </, producing <\/, allowing JS
src/org/json/JSONObject.java:1191
↓ 13 callers
Method
back
Back up one character. This provides a sort of lookahead capability, so that you can test for a digit or letter before attempting to parse the next nu
src/org/json/JSONTokener.java:93
↓ 13 callers
Method
length
Get the number of keys stored in the JSONObject. @return The number of keys in the JSONObject.
src/org/json/JSONObject.java:728
↓ 12 callers
Method
getBridgeConfiguration
()
src/com/hueemulator/emulator/Model.java:31
↓ 11 callers
Method
getString
Get the string associated with an index. @param index The index must be between 0 and length() - 1. @return A string value. @throws JSONEx
src/org/json/JSONArray.java:328
↓ 11 callers
Method
nextClean
Get the next char in the string, skipping whitespace. @throws JSONException @return A character, or 0 if there are no more characters.
src/org/json/JSONTokener.java:230
↓ 11 callers
Method
opt
Get an optional value associated with a key. @param key A key string. @return An object which is the value, or null if there is no value.
src/org/json/JSONObject.java:785
↓ 11 callers
Method
syntaxError
Make a JSONException to signal a syntax error. @param message The error message. @return A JSONException object, suitable for throwing
src/org/json/JSONTokener.java:432
↓ 10 callers
Method
getConfig
()
src/com/hueemulator/model/PHBridgeConfiguration.java:45
↓ 10 callers
Method
names
Produce a JSONArray containing the names of the elements of this JSONObject. @return A JSONArray containing the key strings, or null if the JSONObjec
src/org/json/JSONObject.java:739
↓ 10 callers
Method
optInt
Get an optional int value associated with a key, or zero if there is no such key or if the value is not a number. If the value is a string, an attempt
src/org/json/JSONObject.java:861
↓ 10 callers
Method
writeValue
(Writer writer, Object value, int indentFactor, int indent)
src/org/json/JSONObject.java:1536
↓ 8 callers
Method
getName
()
src/com/hueemulator/model/PHLight.java:45
↓ 7 callers
Method
doGet
(String url)
tests/com/hueemulator/emulator/HttpTester.java:15
↓ 7 callers
Method
getState
()
src/com/hueemulator/model/PHLight.java:55
↓ 7 callers
Method
jsonsEqual
Tests two JSON strings for equality by performing a deep comparison. @param json1 represents a JSON object to compare with json2 @param json2 represe
tests/com/hueemulator/lighting/utils/TestUtils.java:78
↓ 7 callers
Method
opt
Get the optional object value associated with an index. @param index The index must be between 0 and length() - 1. @return An object value
src/org/json/JSONArray.java:387
↓ 6 callers
Method
getClosestPointToPoints
Find the closest point on a line. This point will be within reach of the lamp. @param pointA the point where the line starts @param pointB
src/com/hueemulator/utils/PHUtilitiesHelper.java:368
↓ 6 callers
Method
getDistanceBetweenTwoPoints
Find the distance between two points. @param one the point object @param two the point object @return float the distance between point on
src/com/hueemulator/utils/PHUtilitiesHelper.java:287
↓ 6 callers
Method
getGraphicsPanel
()
src/com/hueemulator/gui/View.java:91
↓ 6 callers
Method
getHttpServer
()
src/com/hueemulator/server/Server.java:36
↓ 6 callers
Method
getHue
()
src/com/hueemulator/model/PHLightState.java:115
↓ 6 callers
Method
optBoolean
Get an optional boolean associated with a key. It returns false if there is no such key, or if the value is not Boolean.TRUE or the String "true". @p
src/org/json/JSONObject.java:797
↓ 6 callers
Method
remove
Remove an index and close the hole. @param index The index of the element to be removed. @return The value that was associated with the in
src/org/json/JSONArray.java:815
↓ 6 callers
Method
setState
(PHLightState state)
src/com/hueemulator/model/PHLight.java:60
↓ 6 callers
Method
testValidity
Throw an exception if the object is a NaN or infinite number. @param o The object to test. @throws JSONException If o is a non
src/org/json/JSONObject.java:1335
↓ 5 callers
Method
getBri
()
src/com/hueemulator/model/PHLightState.java:64
↓ 5 callers
Method
getConsole
()
src/com/hueemulator/gui/View.java:75
↓ 5 callers
Method
getInstance
()
tests/com/hueemulator/emulator/TestEmulator.java:24
↓ 5 callers
Method
getModelid
()
src/com/hueemulator/model/PHLight.java:65
↓ 5 callers
Method
getOn
()
src/com/hueemulator/model/PHLightState.java:135
↓ 5 callers
Method
getPort
()
src/com/hueemulator/emulator/Controller.java:259
↓ 5 callers
Method
getSat
()
src/com/hueemulator/model/PHLightState.java:84
↓ 5 callers
Method
optJSONObject
Get an optional JSONObject associated with a key. It returns null if there is no such key, or if its value is not a JSONObject. @param key
src/org/json/JSONObject.java:905
↓ 5 callers
Method
toString
Make a printable string of this JSONTokener. @return " at {index} [character {character} line {line}]"
src/org/json/JSONTokener.java:442
↓ 4 callers
Method
append
(final String dateString, final String s, final Color color, final JEditorPane console)
src/com/hueemulator/emulator/Controller.java:357
↓ 4 callers
Method
convertJsonElement
(Object elem)
tests/com/hueemulator/lighting/utils/TestUtils.java:130
↓ 4 callers
Method
crossProduct
Calculates crossProduct of two 2D vectors / points. @param point1 first point used as vector @param point2 second point used as
src/com/hueemulator/utils/PHUtilitiesHelper.java:304
↓ 4 callers
Method
getAlert
()
src/com/hueemulator/model/PHLightState.java:105
↓ 4 callers
Method
getCommand
()
src/com/hueemulator/model/PHSchedulesEntry.java:51
↓ 4 callers
Method
getEffect
()
src/com/hueemulator/model/PHLightState.java:74
↓ 4 callers
Method
getInstance
()
src/com/hueemulator/emulator/PHScheduleTimerManager.java:22
↓ 4 callers
Method
getModel
()
tests/com/hueemulator/emulator/TestEmulator.java:85
↓ 4 callers
Method
getOn
()
src/com/hueemulator/model/PHBody.java:46
↓ 4 callers
Method
getServer
()
src/com/hueemulator/emulator/Emulator.java:96
↓ 4 callers
Method
getXy
()
src/com/hueemulator/model/PHLightState.java:155
↓ 4 callers
Method
indent
(Writer writer, int indent)
src/org/json/JSONObject.java:1569
↓ 4 callers
Method
isServerRunning
()
tests/com/hueemulator/emulator/TestEmulator.java:66
↓ 4 callers
Method
keys
Get an enumeration of the keys of the JSONObject. @return An iterator of the keys.
src/org/json/JSONObject.java:710
↓ 4 callers
Method
loadConfiguration
(String fileName)
src/com/hueemulator/emulator/Emulator.java:73
↓ 4 callers
Method
optJSONArray
Get an optional JSONArray associated with a key. It returns null if there is no such key, or if its value is not a JSONArray. @param key A
src/org/json/JSONObject.java:892
↓ 4 callers
Method
reloadInitialConfig
This method is to ensure the Tests are stateless. This method should be called in the setUp before each test is run so the data is reloaded in the se
tests/com/hueemulator/emulator/TestEmulator.java:60
↓ 4 callers
Method
sendErrorResponse
(String groupIdentifier, String type, OutputStream responseBody)
src/com/hueemulator/server/handlers/GroupsAPI.java:372
↓ 4 callers
Method
startEmulator
()
tests/com/hueemulator/emulator/TestEmulator.java:33
↓ 4 callers
Method
wrap
Wrap an object, if necessary. If the object is null, return the NULL object. If it is an array or collection, wrap it in a JSONArray. If it is a map,
src/org/json/JSONObject.java:1485
↓ 3 callers
Method
chopName
(String name)
src/com/hueemulator/utils/Utils.java:30
↓ 3 callers
Method
getBri
()
src/com/hueemulator/model/PHBody.java:26
↓ 3 callers
Method
getCt
()
src/com/hueemulator/model/PHLightState.java:145
↓ 3 callers
Method
getCurrentDate
Returns the current date in the Date Format used by the Bridge. @return
src/com/hueemulator/utils/Utils.java:116
↓ 3 callers
Method
getModel
()
src/com/hueemulator/gui/GraphicsPanel.java:276
↓ 3 callers
Method
getModel
()
src/com/hueemulator/emulator/Controller.java:263
↓ 3 callers
Method
getReachable
()
src/com/hueemulator/model/PHLightState.java:94
↓ 3 callers
Method
getStartButton
()
src/com/hueemulator/gui/HueMenuBar.java:269
↓ 3 callers
Method
getStopButton
()
src/com/hueemulator/gui/HueMenuBar.java:277
↓ 3 callers
Method
getTime
()
src/com/hueemulator/model/PHSchedulesEntry.java:21
↓ 3 callers
Method
getType
()
src/com/hueemulator/model/PHLight.java:85
↓ 3 callers
Method
getWhitelist
()
src/com/hueemulator/model/PHConfig.java:189
↓ 3 callers
Method
getXy
()
src/com/hueemulator/model/PHBody.java:56
↓ 3 callers
Method
isInRange
(int value, int start, int end)
src/com/hueemulator/utils/Utils.java:22
↓ 3 callers
Method
nextValue
Get the next value. The value can be a Boolean, Double, Integer, JSONArray, JSONObject, Long, or String, or the JSONObject.NULL object. @throws JSONEx
src/org/json/JSONTokener.java:353
↓ 3 callers
Method
returnErrorResponse
(String errorType, String description, String address, OutputStream responseBody)
src/com/hueemulator/server/handlers/ConfigurationAPI.java:223
↓ 3 callers
Method
sendErrorResponse
(String lightIdentifier, String type, OutputStream responseBody)
src/com/hueemulator/server/handlers/SchedulesAPI.java:355
↓ 3 callers
Method
setBri
(Integer bri)
src/com/hueemulator/model/PHBody.java:31
↓ 3 callers
Method
setController
(Controller controller)
src/com/hueemulator/gui/HueMenuBar.java:333
↓ 3 callers
Method
setHasBridgeBeenPushLinked
(boolean hasBridgeBeenPushLinked)
src/com/hueemulator/emulator/Controller.java:393
next →
1–100 of 476, ranked by callers