id stringlengths 24 24 | repo stringlengths 8 59 | path stringlengths 11 234 | func_name stringlengths 3 140 | url stringlengths 102 339 | split stringclasses 3
values | language stringclasses 1
value | docstring stringlengths 1 34k | code stringlengths 63 281k | text stringlengths 101 286k | token_count int32 22 65.8k | doc_chars int32 1 34k | code_chars int32 63 281k | license_basis stringclasses 1
value | source stringclasses 1
value | added stringdate 2026-12-05 00:00:00 2026-12-05 00:00:00 | record_sha256 stringlengths 64 64 | license stringclasses 8
values | license_class stringclasses 1
value | license_source stringlengths 45 101 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83b332ac5439343d65ca4661 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPTunnel.java | KNXnetIPTunnel.send | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPTunnel.java#L164-L172 | train | java | Sends a cEMI frame to the remote server communicating with this endpoint.
<p>
Sending in busmonitor mode is not permitted.<br>
@param frame cEMI message to send, the expected cEMI type is according to the used
tunneling layer | public void send(CEMI frame, BlockingMode mode) throws KNXTimeoutException,
KNXConnectionClosedException
{
if (layer == BUSMONITOR_LAYER)
throw new KNXIllegalStateException("send not permitted in busmonitor mode");
if (!(frame instanceof CEMILData))
throw new KNXIllegalArgumentException("unsupported ... | Sends a cEMI frame to the remote server communicating with this endpoint.
<p>
Sending in busmonitor mode is not permitted.<br>
@param frame cEMI message to send, the expected cEMI type is according to the used
tunneling layer
public void send(CEMI frame, BlockingMode mode) throws KNXTimeoutException,
KNXConnection... | 141 | 226 | 364 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e44ef4d65eeb04f8e49f789c50508cd95e885234ad6f98571f6bc0bc91a5f55e | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
5f5d0e1e7dbdf8abc2063fbc | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPTunnel.java | KNXnetIPTunnel.handleService | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/KNXnetIPTunnel.java#L186-L248 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.ConnectionImpl#handleService
(tuwien.auto.calimero.knxnetip.servicetype.KNXnetIPHeader, byte[], int) | void handleService(KNXnetIPHeader h, byte[] data, int offset)
throws KNXFormatException, IOException
{
final int svc = h.getServiceType();
if (svc == KNXnetIPHeader.TUNNELING_REQ) {
ServiceRequest req;
try {
req = PacketHelper.getServiceRequest(h, data, offset);
}
catch (final KNXFormatE... | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.ConnectionImpl#handleService
(tuwien.auto.calimero.knxnetip.servicetype.KNXnetIPHeader, byte[], int)
void handleService(KNXnetIPHeader h, byte[] data, int offset)
throws KNXFormatException, IOException
{
final int svc = h.getServiceType();
if (svc == KNXne... | 726 | 152 | 2,570 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | bcb3f5528dad5c2db3b5ebf6ee713ee16ad03bf6deb5b934c7f507add14de8c4 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
eb45ddae8742608c893eebad | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java | KNXNetworkLinkIP.setKNXMedium | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java#L292-L300 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#setKNXMedium
(tuwien.auto.calimero.link.medium.KNXMediumSettings) | public void setKNXMedium(KNXMediumSettings settings)
{
if (settings == null)
throw new KNXIllegalArgumentException("medium settings are mandatory");
if (medium != null && !settings.getClass().isAssignableFrom(medium.getClass())
&& !medium.getClass().isAssignableFrom(settings.getClass()))
throw new K... | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#setKNXMedium
(tuwien.auto.calimero.link.medium.KNXMediumSettings)
public void setKNXMedium(KNXMediumSettings settings)
{
if (settings == null)
throw new KNXIllegalArgumentException("medium settings are mandatory");
if (medium != null && !settin... | 119 | 128 | 391 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7d0558f1388c426c088ca145ebc91b72575de80e919a9b13c3cb92a23740dfeb | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
75543a12d3166b38dbe9bdfb | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java | KNXNetworkLinkIP.setHopCount | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java#L331-L337 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#setHopCount(int) | public final void setHopCount(int count)
{
if (count < 0 || count > 7)
throw new KNXIllegalArgumentException("hop count out of range [0..7]");
hopCount = (byte) count;
logger.info("hop count set to " + count);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#setHopCount(int)
public final void setHopCount(int count)
{
if (count < 0 || count > 7)
throw new KNXIllegalArgumentException("hop count out of range [0..7]");
hopCount = (byte) count;
logger.info("hop count set to " + count);
} | 91 | 79 | 228 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0c7a55532c51598a1ec966cdb11e769f1bc4267d0ddbe58c8908fa2b18627480 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f23ef65283a26c59cec396b8 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java | KNXNetworkLinkIP.sendRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java#L352-L356 | train | java | {@inheritDoc} When communicating with a KNX network which uses open medium,
messages are broadcasted within domain (as opposite to system broadcast) by
default. Specify <code>dst null</code> for system broadcast. | public void sendRequest(KNXAddress dst, Priority p, byte[] nsdu)
throws KNXLinkClosedException, KNXTimeoutException
{
send(dst, p, nsdu, false);
} | {@inheritDoc} When communicating with a KNX network which uses open medium,
messages are broadcasted within domain (as opposite to system broadcast) by
default. Specify <code>dst null</code> for system broadcast.
public void sendRequest(KNXAddress dst, Priority p, byte[] nsdu)
throws KNXLinkClosedException, KNXTime... | 90 | 212 | 156 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5cc42d250cf87144f81a6f7c4d0e1c6a7a0dcf8ad9310e7fe51951ffc0749958 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b38a0366f5782494146a979a | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java | KNXNetworkLinkIP.sendRequestWait | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java#L363-L367 | train | java | {@inheritDoc} When communicating with a KNX network which uses open medium,
messages are broadcasted within domain (as opposite to system broadcast) by
default. Specify <code>dst null</code> for system broadcast. | public void sendRequestWait(KNXAddress dst, Priority p, byte[] nsdu)
throws KNXTimeoutException, KNXLinkClosedException
{
send(dst, p, nsdu, true);
} | {@inheritDoc} When communicating with a KNX network which uses open medium,
messages are broadcasted within domain (as opposite to system broadcast) by
default. Specify <code>dst null</code> for system broadcast.
public void sendRequestWait(KNXAddress dst, Priority p, byte[] nsdu)
throws KNXTimeoutException, KNXLin... | 91 | 212 | 159 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a83f79441b3c69c4a9ab4806ea913d2ce173e2a0fe5a1b5fc2c06ba610387efc | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
6192d539d1c4003c41ca54e7 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java | KNXNetworkLinkIP.send | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java#L373-L377 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#send
(tuwien.auto.calimero.cemi.CEMILData, boolean) | public void send(CEMILData msg, boolean waitForCon) throws KNXTimeoutException,
KNXLinkClosedException
{
doSend(adjustMsgType(msg), waitForCon);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#send
(tuwien.auto.calimero.cemi.CEMILData, boolean)
public void send(CEMILData msg, boolean waitForCon) throws KNXTimeoutException,
KNXLinkClosedException
{
doSend(adjustMsgType(msg), waitForCon);
} | 82 | 114 | 156 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 894ff8b9913fbdc20d806c4a3a5541c56ca7ac66015e37541ac2f967405dc708 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
bb98c1b08ad435e855074e8c | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java | KNXNetworkLinkIP.getName | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/link/KNXNetworkLinkIP.java#L382-L387 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#getName() | public String getName()
{
// do our own IP:port string, since InetAddress.toString() always prepends a '/'
final InetSocketAddress a = conn.getRemoteAddress();
return "link " + a.getAddress().getHostAddress() + ":" + a.getPort();
} | /* (non-Javadoc)
@see tuwien.auto.calimero.link.KNXNetworkLink#getName()
public String getName()
{
// do our own IP:port string, since InetAddress.toString() always prepends a '/'
final InetSocketAddress a = conn.getRemoteAddress();
return "link " + a.getAddress().getHostAddress() + ":" + a.getPort();
} | 81 | 72 | 244 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e5501f3ae300d12df26f8cf6bae07191b197b5c777b25ff35cbc0b602fb5a6fd | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
81ddabbb258c65e6d62c903a | phax/ph-xmldsig | src/main/java/com/helger/xmldsig/XMLDSigCreator.java | XMLDSigCreator.applyXMLDSigAsFirstChild | https://github.com/phax/ph-xmldsig/blob/c00677fe3dac5aef0f3039b08a03e90052473952/src/main/java/com/helger/xmldsig/XMLDSigCreator.java#L257-L289 | train | java | Apply an XMLDSig onto the passed document.
@param aPrivateKey
The private key used for signing. May not be <code>null</code>.
@param aCertificate
The certificate to be used. May not be <code>null</code>.
@param aDocument
The document to be signed. The signature will always be the first
child element of the document el... | public void applyXMLDSigAsFirstChild (@Nonnull final PrivateKey aPrivateKey,
@Nonnull final X509Certificate aCertificate,
@Nonnull final Document aDocument) throws Exception
{
ValueEnforcer.notNull (aPrivateKey, "privateKey");
Val... | Apply an XMLDSig onto the passed document.
@param aPrivateKey
The private key used for signing. May not be <code>null</code>.
@param aCertificate
The certificate to be used. May not be <code>null</code>.
@param aDocument
The document to be signed. The signature will always be the first
child element of the document el... | 464 | 508 | 1,895 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5cb1333cf5432ae477a0e49d0b3c4d456f8e14e7f61b9080d7101c8bfedca4b1 | Apache-2.0 | permissive | https://github.com/phax/ph-xmldsig/blob/master/LICENSE |
bcac014d1628568c9b133bb4 | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java | IllegalPatternArgumentException.determineMessage | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java#L61-L63 | train | java | Determines the message to be used, depending on the passed argument name. If if the given argument name is
{@code null} or empty {@code DEFAULT_MESSAGE} will be returned, otherwise a formatted {@code MESSAGE_WITH_NAME}
with the passed name and pattern which the argument must match.
@param argumentName
the name of the ... | private static String determineMessage(@Nullable final String argumentName, @Nullable final Pattern pattern) {
return argumentName != null && !argumentName.isEmpty() ? format(argumentName, pattern) : format(pattern);
} | Determines the message to be used, depending on the passed argument name. If if the given argument name is
{@code null} or empty {@code DEFAULT_MESSAGE} will be returned, otherwise a formatted {@code MESSAGE_WITH_NAME}
with the passed name and pattern which the argument must match.
@param argumentName
the name of the ... | 158 | 549 | 221 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 86fa2c6106c461f70412bb0d8c5faf4ea4071057d4f33ed8e89197cf17cdd4ed | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
7d660d52fbe65b08d03166fe | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java | IllegalPatternArgumentException.format | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java#L75-L77 | train | java | Returns the formatted string {@link IllegalPatternArgumentException#DEFAULT_MESSAGE} with the given pattern which
the argument must match.
@param argumentName
the name of the passed argument
@param pattern
Pattern, that a string or character sequence should correspond to
@return a formatted string of message with the ... | private static String format(@Nullable final Pattern pattern) {
return String.format(DEFAULT_MESSAGE, patternToString(pattern));
} | Returns the formatted string {@link IllegalPatternArgumentException#DEFAULT_MESSAGE} with the given pattern which
the argument must match.
@param argumentName
the name of the passed argument
@param pattern
Pattern, that a string or character sequence should correspond to
@return a formatted string of message with the ... | 86 | 339 | 133 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7155afbdee69b52e605862c53c0b8fbde6ada8f62511ac10e2c73eb6eb0f5b2d | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
1c9ac18e4446ab589b26713c | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java | IllegalPatternArgumentException.format | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java#L89-L92 | train | java | Returns the formatted string {@link IllegalPatternArgumentException#MESSAGE_WITH_NAME} with the given
{@code argumentName} and pattern which the argument must match.
@param argumentName
the name of the passed argument
@param pattern
Pattern, that a string or character sequence should correspond to
@return a formatted ... | private static String format(@Nullable final String argumentName, @Nullable final Pattern pattern) {
final String p = patternToString(pattern);
return String.format(MESSAGE_WITH_NAME, argumentName, p);
} | Returns the formatted string {@link IllegalPatternArgumentException#MESSAGE_WITH_NAME} with the given
{@code argumentName} and pattern which the argument must match.
@param argumentName
the name of the passed argument
@param pattern
Pattern, that a string or character sequence should correspond to
@return a formatted ... | 112 | 366 | 208 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5425a796bf68d04daea712272a4f2f2c53841dcdefe8dd70bb93574d806c07c7 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
6ac11017b67db0dcf0fd57bd | before/quality-check | modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java | IllegalPatternArgumentException.patternToString | https://github.com/before/quality-check/blob/a75c32c39434ddb1f89bece57acae0536724c15a/modules/quality-check/src/main/java/net/sf/qualitycheck/exception/IllegalPatternArgumentException.java#L101-L103 | train | java | Converts a {@link Pattern} to a string representation.
@param pattern
Pattern
@return string representation of a pattern | private static String patternToString(@Nullable final Pattern pattern) {
return pattern != null ? pattern.pattern() + " (flags: " + pattern.flags() + ")" : NO_PATTERN_PLACEHOLDER;
} | Converts a {@link Pattern} to a string representation.
@param pattern
Pattern
@return string representation of a pattern
private static String patternToString(@Nullable final Pattern pattern) {
return pattern != null ? pattern.pattern() + " (flags: " + pattern.flags() + ")" : NO_PATTERN_PLACEHOLDER;
} | 65 | 121 | 184 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 32e683ae4d9444943f96b38f1ead2bd8b61de3664ac4125042ddbd3763effa40 | Apache-2.0 | permissive | https://github.com/arouel/quality-check/blob/master/LICENSE.txt |
c0591868c952dd561caac8f3 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java | DPTXlator.setValues | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java#L168-L176 | train | java | Translates the array of strings according to the set datapoint ID.
<p>
If, and only if, all items in <code>values</code> can successfully be translated,
they get stored by the translator, replacing any old items. On
<code>values.length == 0</code>, no action is performed.<br>
Textual commands contained in <code>values<... | public void setValues(String[] values) throws KNXFormatException
{
if (values.length > 0) {
final short[] buf = new short[(typeSize > 0 ? typeSize : 1) * values.length];
for (int i = 0; i < values.length; ++i)
toDPT(values[i], buf, i);
data = buf;
}
} | Translates the array of strings according to the set datapoint ID.
<p>
If, and only if, all items in <code>values</code> can successfully be translated,
they get stored by the translator, replacing any old items. On
<code>values.length == 0</code>, no action is performed.<br>
Textual commands contained in <code>values<... | 230 | 585 | 278 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fb1bd54294db1eaf9aa8adab3b62cc1ef4c2cf430d04673672e9fa83712fa98f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
7a01ae4ddc03b73c6f1b6ca5 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java | DPTXlator.setValue | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java#L203-L208 | train | java | Translates the <code>value</code> according to the set datapoint ID.
<p>
If, and only if, <code>value</code> can successfully be translated, it gets
stored by the translator, replacing any old items. Textual commands contained in
<code>value</code> are treated case insensitive.<br>
The <code>value</code> string might h... | public void setValue(String value) throws KNXFormatException
{
final short[] buf = new short[typeSize > 0 ? typeSize : 1];
toDPT(value, buf, 0);
data = buf;
} | Translates the <code>value</code> according to the set datapoint ID.
<p>
If, and only if, <code>value</code> can successfully be translated, it gets
stored by the translator, replacing any old items. Textual commands contained in
<code>value</code> are treated case insensitive.<br>
The <code>value</code> string might h... | 199 | 612 | 171 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 572d4e9fdca8fd1c781596778951ea8262d53ca1fcc0b598c3b0534d913daca8 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
cfadb228178ae359e67b33e1 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java | DPTXlator.setTypeID | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java#L405-L415 | train | java | Sets the DPT for the translator to use for translation, doing a lookup before in
the translator's map containing the available, implemented datapoint types.
<p>
@param availableTypes map of the translator with available, implemented DPTs; the
map key is a dptID string, map value is of type {@link DPT}
@param dptID the... | protected void setTypeID(Map availableTypes, String dptID) throws KNXFormatException
{
final DPT t = (DPT) availableTypes.get(dptID);
if (t == null) {
// don't call logThrow since dpt is not set yet
final String s = "DPT " + dptID + " is not available";
logger.warn(s);
throw new KNXFormatExcepti... | Sets the DPT for the translator to use for translation, doing a lookup before in
the translator's map containing the available, implemented datapoint types.
<p>
@param availableTypes map of the translator with available, implemented DPTs; the
map key is a dptID string, map value is of type {@link DPT}
@param dptID the... | 204 | 410 | 354 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b694a456faedd1f54e0dfd34e677b8d81e8a9959d8bac3d557be93bbd52dd9ad | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
262f097b9d44705289c265d0 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java | DPTXlator.removeUnit | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java#L452-L459 | train | java | Returns value with unit cut off at end of string, if current DPT has a unit
specified.
<p>
Whitespace are removed from both ends.
@param value value string representation
@return trimmed value string without unit | final String removeUnit(String value)
{
final int i;
if (dpt.getUnit().length() > 0 && (i = value.lastIndexOf(dpt.getUnit())) > -1)
return value.substring(0, i).trim();
// java number parsing routines are really picky, remove WS
return value.trim();
} | Returns value with unit cut off at end of string, if current DPT has a unit
specified.
<p>
Whitespace are removed from both ends.
@param value value string representation
@return trimmed value string without unit
final String removeUnit(String value)
{
final int i;
if (dpt.getUnit().length() > 0 && (i = value... | 118 | 213 | 271 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 834895178d03a937a23ff9299c378cfca149bf5e8da30dd88a93f9e7b3f9b54a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
e62dc9127e0e2d1ae18a2d45 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java | DPTXlator.logThrow | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator.java#L477-L487 | train | java | Helper which logs message and creates a format exception.
<p>
Adds the current dpt ID as prefix to log output.
@param level log level
@param msg log output, exception message if <code>excMsg</code> is
<code>null</code>
@param excMsg exception message, if <code>null</code> <code>msg</code> is used
@param item item in K... | final KNXFormatException logThrow(LogLevel level, String msg, String excMsg,
String item)
{
final KNXFormatException e =
new KNXFormatException(excMsg != null ? excMsg : msg, item);
if (excMsg != null)
logger.log(level, dpt.getID() + " - " + msg, e);
else
logger.log(level, dpt.getID() + " - " ... | Helper which logs message and creates a format exception.
<p>
Adds the current dpt ID as prefix to log output.
@param level log level
@param msg log output, exception message if <code>excMsg</code> is
<code>null</code>
@param excMsg exception message, if <code>null</code> <code>msg</code> is used
@param item item in K... | 189 | 365 | 344 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e9b89f90a8392c9e93278d635fe5bc93c564def25a47c449b774cfc60cb8493a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
61b752b9237da623fb52d31c | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator4ByteUnsigned.java | DPTXlator4ByteUnsigned.getData | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlator4ByteUnsigned.java#L184-L242 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int) | public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset) & ~0x03;
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/* (non-Javadoc)
* @see tuwien.auto.calimero.dptxlator.DPTXlator#getSubTypes()
*/
public final Ma... | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int)
public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset) & ~0x03;
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/* (non-Javadoc)
... | 518 | 83 | 1,597 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 67cb0dd4a60c1028ab70d212a1bafe0f85fc980bf74ed773f581a417b73dcb5d | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d32f0e2616d8ce12e7b6feb5 | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyMapUtils.java | MyMapUtils.rankMapOnIntegerValue | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyMapUtils.java#L36-L42 | train | java | Ranks a map based on integer values
@param inputMap Input
@return The ranked map | public static <K> Map<K, Integer> rankMapOnIntegerValue(Map<K, Integer> inputMap) {
Map<K, Integer> newMap = new TreeMap<K, Integer>(new IntegerValueComparator(inputMap));
newMap.putAll(inputMap);
Map<K, Integer> linkedMap = new LinkedHashMap<K, Integer>(newMap);
return linkedMap;
} | Ranks a map based on integer values
@param inputMap Input
@return The ranked map
public static <K> Map<K, Integer> rankMapOnIntegerValue(Map<K, Integer> inputMap) {
Map<K, Integer> newMap = new TreeMap<K, Integer>(new IntegerValueComparator(inputMap));
newMap.putAll(inputMap);
Map<K, Integer> linkedMap = ... | 98 | 80 | 302 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3a69cedbc7c8dfa991aebc2a037809c44365dce4b4ef1af794ea843cfc44dbd1 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
143943def3339b53f36d1d9a | brunocvcunha/inutils4j | src/main/java/org/brunocvcunha/inutils4j/MyMapUtils.java | IntegerValueComparator.compare | https://github.com/brunocvcunha/inutils4j/blob/223c4443c2cee662576ce644e552588fa114aa94/src/main/java/org/brunocvcunha/inutils4j/MyMapUtils.java#L57-L64 | train | java | /* (non-Javadoc)
@see java.util.Comparator#compare(java.lang.Object, java.lang.Object) | @Override
public int compare(Object a, Object b) {
if (base.get(a) >= base.get(b)) {
return -1;
}
return 1;
} | /* (non-Javadoc)
@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
@Override
public int compare(Object a, Object b) {
if (base.get(a) >= base.get(b)) {
return -1;
}
return 1;
} | 61 | 86 | 136 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 25a4e5ed83023d98db86076dac73594e6801f6bd474e4f105fe26bfe368da501 | Apache-2.0 | permissive | https://github.com/bvolpato/inutils4j/blob/master/LICENSE |
16992f9fd691277c712f0ddd | thorstenwagner/TraJ | src/main/java/de/biomedical_imaging/traJ/simulation/AbstractSphereObstacle.java | AbstractSphereObstacle.intersectionVolume | https://github.com/thorstenwagner/TraJ/blob/505fafb1f2f77a2d67bb2a089a2fdebe2c9bc7cb/src/main/java/de/biomedical_imaging/traJ/simulation/AbstractSphereObstacle.java#L87-L118 | train | java | For 2D: Implements formula 14 of http://mathworld.wolfram.com/Circle-CircleIntersection.html
For 3D: Implements formula 16 of http://mathworld.wolfram.com/Sphere-SphereIntersection.html | public double intersectionVolume(AbstractSphereObstacle o) {
if(dimension != o.getDimension()){
throw new IllegalArgumentException("Obstacles have different dimensions");
}
double result = 0;
double distance = 0;
for(int i = 0; i < dimension; i++){
distance += Math.pow(position[i]-o.getPosition()[i],... | For 2D: Implements formula 14 of http://mathworld.wolfram.com/Circle-CircleIntersection.html
For 3D: Implements formula 16 of http://mathworld.wolfram.com/Sphere-SphereIntersection.html
public double intersectionVolume(AbstractSphereObstacle o) {
if(dimension != o.getDimension()){
throw new IllegalArgumentExce... | 357 | 185 | 902 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ef5fef1d135c54f62ced21baa4e4e3173eddb7b6acbfc809e6e052fed789f2a4 | MIT | permissive | https://github.com/thorstenwagner/TraJ/blob/master/license.txt |
0adaca00ca3380cbf1f4d5d0 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/ConnectRequest.java | ConnectRequest.toByteArray | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/ConnectRequest.java#L184-L193 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray
(java.io.ByteArrayOutputStream) | byte[] toByteArray(ByteArrayOutputStream os)
{
byte[] buf = ctrlPt.toByteArray();
os.write(buf, 0, buf.length);
buf = dataPt.toByteArray();
os.write(buf, 0, buf.length);
buf = cri.toByteArray();
os.write(buf, 0, buf.length);
return os.toByteArray();
} | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray
(java.io.ByteArrayOutputStream)
byte[] toByteArray(ByteArrayOutputStream os)
{
byte[] buf = ctrlPt.toByteArray();
os.write(buf, 0, buf.length);
buf = dataPt.toByteArray();
os.write(buf, 0, buf.length);
buf = cri.to... | 105 | 119 | 276 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1e84c43cf930da323fd06ca9a8c5d239d9afaf3ace1638d74936bd0056c084b1 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b226d358c3d195f47de5ab3e | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.declarations | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L80-L97 | train | java | ---------------- DECLARATION | @Descriptor("Gets info about the declarations available")
public void declarations(@Descriptor("declarations [--type import|export]") String... parameters) {
String type = getArgumentValue("--type", parameters);
try {
if ((type == null) || "import".equals(type)) {
List<Se... | ---------------- DECLARATION
@Descriptor("Gets info about the declarations available")
public void declarations(@Descriptor("declarations [--type import|export]") String... parameters) {
String type = getArgumentValue("--type", parameters);
try {
if ((type == null) || "import".equals(ty... | 165 | 28 | 847 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 26fb2ce5fb40959fe22ba31f0f651decc5e45c6f5586f3336d5a246e07a3b556 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
9ba47a4a02ef8d3b9529349c | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.linker | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L240-L266 | train | java | ---------------- LINKER | @Descriptor("Gets the importation/exportation linker available")
public void linker(@Descriptor("linker [-(import|export)] [ID name]") String... parameters) {
List<ServiceReference> exportationLinkerRef = getAllServiceRefs(ExportationLinker.class);
List<ServiceReference> importationLinkerRef = getAl... | ---------------- LINKER
@Descriptor("Gets the importation/exportation linker available")
public void linker(@Descriptor("linker [-(import|export)] [ID name]") String... parameters) {
List<ServiceReference> exportationLinkerRef = getAllServiceRefs(ExportationLinker.class);
List<ServiceReference> imp... | 281 | 23 | 1,524 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7c1afc55ede4ca280fca28600687cb04ede2bc92620b53b37033886b2f267389 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
7e618d83efb42e08bea52570 | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.discovery | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L270-L287 | train | java | ---------------- DISCOVERY | @Descriptor("Gets the discovery available in the platform")
public void discovery(@Descriptor("discovery [discovery name]") String... parameters) {
List<ServiceReference> discoveryRef = getAllServiceRefs(DiscoveryService.class);
StringBuilder sbFinal = new StringBuilder();
if (discoveryRef.i... | ---------------- DISCOVERY
@Descriptor("Gets the discovery available in the platform")
public void discovery(@Descriptor("discovery [discovery name]") String... parameters) {
List<ServiceReference> discoveryRef = getAllServiceRefs(DiscoveryService.class);
StringBuilder sbFinal = new StringBuilder()... | 146 | 26 | 807 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | adab064a3f6b97ab84776231e664f2c54c2cf0f4306640491d88cff17be624e5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b000eebc6ed5363082005f99 | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.importer | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L291-L307 | train | java | ---------------- IMPORTER | @Descriptor("Gets the importer available in the platform")
public void importer(@Descriptor("importer [importer name]") String... parameters) {
Map<ServiceReference, ImporterService> importerRefsAndServices = getAllServiceRefsAndServices(ImporterService.class);
StringBuilder sbFinal = new StringBuil... | ---------------- IMPORTER
@Descriptor("Gets the importer available in the platform")
public void importer(@Descriptor("importer [importer name]") String... parameters) {
Map<ServiceReference, ImporterService> importerRefsAndServices = getAllServiceRefsAndServices(ImporterService.class);
StringBuild... | 188 | 25 | 982 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7387e134a05968c19637787535675dd667f51d916ed23e524a43a6080f6fdb2a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
746c820eeaeff0ed4afe469a | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.exporter | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L311-L327 | train | java | ---------------- EXPORTER | @Descriptor("Gets the exporter available in the platform")
public void exporter(@Descriptor("exporter [exporter name]") String... parameters) {
Map<ServiceReference, ExporterService> exporterRefsAndServices = getAllServiceRefsAndServices(ExporterService.class);
StringBuilder sbFinal = new StringBuil... | ---------------- EXPORTER
@Descriptor("Gets the exporter available in the platform")
public void exporter(@Descriptor("exporter [exporter name]") String... parameters) {
Map<ServiceReference, ExporterService> exporterRefsAndServices = getAllServiceRefsAndServices(ExporterService.class);
StringBuild... | 183 | 25 | 970 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fcdd948c46fd729a66f1cbc0a4ed6a6e1b99b53cb8ebe9c0726e6461a8ebb7de | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a207f387c3cec897c9f4feef | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.sendmessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L331-L349 | train | java | ---------------- SEND MESSAGE | @Descriptor("Send event admin messages")
public void sendmessage(@Descriptor("sendmessage BUS [KEY=VALUE ]*") String... parameters) {
assert parameters[0] != null;
String bus = parameters[0];
Dictionary eventAdminPayload = new Hashtable();
for (String m : parameters) {
if... | ---------------- SEND MESSAGE
@Descriptor("Send event admin messages")
public void sendmessage(@Descriptor("sendmessage BUS [KEY=VALUE ]*") String... parameters) {
assert parameters[0] != null;
String bus = parameters[0];
Dictionary eventAdminPayload = new Hashtable();
for (String m... | 182 | 29 | 895 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 770d3962f2ffca0aceb8fb7eaa4cf6613de0fde6a52901ff8583dab2e31c0262 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
72313d97c5e3d058045bd666 | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.getAllServiceRefs | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L354-L366 | train | java | ---------------- UTILS SERVICES | private <T> List<ServiceReference> getAllServiceRefs(Class<T> klass) {
ServiceReference[] importDeclarationsRef;
try {
importDeclarationsRef = context.getAllServiceReferences(klass.getName(), null);
} catch (InvalidSyntaxException e) {
LOG.error("Failed to retrieved servi... | ---------------- UTILS SERVICES
private <T> List<ServiceReference> getAllServiceRefs(Class<T> klass) {
ServiceReference[] importDeclarationsRef;
try {
importDeclarationsRef = context.getAllServiceReferences(klass.getName(), null);
} catch (InvalidSyntaxException e) {
LOG... | 114 | 31 | 580 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 649b463278271d939252d0cf400e52100694cfb0641a81e78b7aebd338fca3f2 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
540c561771df0fa987c9e118 | ow2-chameleon/fuchsia | tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java | FuchsiaGogoCommand.displayServiceProperties | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/tools/gogo-shell/src/main/java/org/ow2/chameleon/fuchsia/tools/shell/FuchsiaGogoCommand.java#L386-L398 | train | java | ---------------- UTILS DISPLAY | private static StringBuilder displayServiceProperties(ServiceReference reference) {
StringBuilder sb = new StringBuilder();
for (String propertyKey : reference.getPropertyKeys()) {
sb.append(String.format("%s = %s%n", propertyKey, reference.getProperty(propertyKey)));
}
if ... | ---------------- UTILS DISPLAY
private static StringBuilder displayServiceProperties(ServiceReference reference) {
StringBuilder sb = new StringBuilder();
for (String propertyKey : reference.getPropertyKeys()) {
sb.append(String.format("%s = %s%n", propertyKey, reference.getProperty(prope... | 84 | 30 | 431 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5bf2e6a50917d5a614b3151063d23826846a5b8fb829e0aba686b03d74359e65 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
22d42727eb023fdc5d41c87e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java | PropClient.main | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java#L155-L167 | train | java | Entry point for running the PropClient.
<p>
An IP host or port identifier has to be supplied to specify the endpoint for the
KNX network access.<br>
To show the usage message of this tool on the console, supply the command line
option -help (or -h).<br>
Command line options are treated case sensitive. Available options... | public static void main(String[] args)
{
try {
// read the command line options and run the client
final Map options = new HashMap();
if (parseOptions(args, options))
new PropClient().run(options);
}
catch (final Throwable t) {
if (t.getMessage() != null)
System.out.println(t.getMes... | Entry point for running the PropClient.
<p>
An IP host or port identifier has to be supplied to specify the endpoint for the
KNX network access.<br>
To show the usage message of this tool on the console, supply the command line
option -help (or -h).<br>
Command line options are treated case sensitive. Available options... | 580 | 1,697 | 337 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 63dd18e9ea698a885151e844d089f9784fe22e059c1d1814e4c27a7c026d3498 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
674b7b715194a5f24998d823 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java | PropClient.create | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java#L243-L260 | train | java | Creates the property adapter to be used with the property client depending on the
supplied user <code>options</code>.
<p>
There are two types of property adapters. One uses KNXnet/IP local device
management to access KNX properties in an interface object, the other type uses
remote property services. The remote adapter... | private PropertyAdapter create(Map options) throws KNXException
{
// add a log writer for the console (System.out), setting a
// user log level, if specified
LogManager.getManager().addWriter(null,
new ConsoleWriter(options.containsKey("verbose")));
// create local and remote socket address for use in... | Creates the property adapter to be used with the property client depending on the
supplied user <code>options</code>.
<p>
There are two types of property adapters. One uses KNXnet/IP local device
management to access KNX properties in an interface object, the other type uses
remote property services. The remote adapter... | 303 | 590 | 809 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 384f51ab289dc3903412b41707ed02266474365ee67c31f5914d4f6ce39206f8 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
14f7a8d1ff7eb42a6c849c00 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java | PropClient.createLocalDMAdapter | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java#L272-L277 | train | java | Creates a local device management adapter.
<p>
@param local local socket address
@param host remote socket address of host
@param options contains parameters for property adapter creation
@return local DM adapter
@throws KNXException on adapter creation problem | private PropertyAdapter createLocalDMAdapter(InetSocketAddress local,
InetSocketAddress host, Map options) throws KNXException
{
return new KnIPDeviceMgmtAdapter(local, host, options.containsKey("nat"),
new PropertyListener(), options.containsKey("emulatewrite"));
} | Creates a local device management adapter.
<p>
@param local local socket address
@param host remote socket address of host
@param options contains parameters for property adapter creation
@return local DM adapter
@throws KNXException on adapter creation problem
private PropertyAdapter createLocalDMAdapter(InetSocketA... | 105 | 262 | 280 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 789b50d2b3ec46b3a6d20a767bdaf86b53b260e877ccc063af16832abec3dedd | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
cdf0c48958f392a79bd4611e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java | PropClient.readLine | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/tools/PropClient.java#L329-L334 | train | java | Writes command prompt and waits for command request from user.
<p>
@param r input reader
@return array with command and command arguments
@throws IOException on I/O error | private String[] readLine(BufferedReader r) throws IOException
{
System.out.print("> ");
final String line = r.readLine();
return line != null ? split(line) : null;
} | Writes command prompt and waits for command request from user.
<p>
@param r input reader
@return array with command and command arguments
@throws IOException on I/O error
private String[] readLine(BufferedReader r) throws IOException
{
System.out.print("> ");
final String line = r.readLine();
return line !... | 76 | 171 | 179 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9cc6210a72d10b3c7d7cc8890f53f93240e781463493e47e74a1d521f71222a9 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
68ff7e125d85f6096bba5ac1 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.readBool | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L257-L264 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readBool
(tuwien.auto.calimero.GroupAddress) | public boolean readBool(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 0, 0);
final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);
extractGroupASDU(apdu, t);
return t.... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readBool
(tuwien.auto.calimero.GroupAddress)
public boolean readBool(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 0, 0);
f... | 128 | 115 | 342 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0a24bb5ec08302df952f560ea2337e0d3df376a76e452e83ed5f1a50da5a92fd | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a9d18e458ed8973ae9207556 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.write | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L270-L279 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, boolean) | public void write(GroupAddress dst, boolean value) throws KNXTimeoutException,
KNXLinkClosedException
{
try {
final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);
t.setValue(value);
write(dst, priority, t);
}
catch (final KNXFormatException ignore) {}
} | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, boolean)
public void write(GroupAddress dst, boolean value) throws KNXTimeoutException,
KNXLinkClosedException
{
try {
final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);... | 114 | 121 | 304 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ceffce73e33cba12530285fde437a9b8889d293a08613b6cb317772c489f54c6 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
82ed424e0541288f5eb70e8c | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.readUnsigned | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L285-L293 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readUnsigned
(tuwien.auto.calimero.GroupAddress, java.lang.String) | public short readUnsigned(GroupAddress dst, String scale)
throws KNXTimeoutException, KNXRemoteException, KNXLinkClosedException,
KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 1, 1);
final DPTXlator8BitUnsigned t = new DPTXlator8BitUnsigned(scale);
extractGroupASDU(apdu, t);
... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readUnsigned
(tuwien.auto.calimero.GroupAddress, java.lang.String)
public short readUnsigned(GroupAddress dst, String scale)
throws KNXTimeoutException, KNXRemoteException, KNXLinkClosedException,
KNXFormatException
{
final byte[] apdu =... | 133 | 137 | 352 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3af7ca1c63e48a1121cc2b50ff895cf2329a42f4447fe4e02edd26383ea588f7 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
3ec24490cc1022559793e597 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.write | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L299-L305 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, int, java.lang.String) | public void write(GroupAddress dst, int value, String scale)
throws KNXTimeoutException, KNXFormatException, KNXLinkClosedException
{
final DPTXlator8BitUnsigned t = new DPTXlator8BitUnsigned(scale);
t.setValue(value);
write(dst, priority, t);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, int, java.lang.String)
public void write(GroupAddress dst, int value, String scale)
throws KNXTimeoutException, KNXFormatException, KNXLinkClosedException
{
final DPTXlator8BitUnsigned t = new DPTXl... | 105 | 135 | 261 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 87789b2670a842cd8c7e34d4d77f800a95b2673b9dda3f0ad303ab496099c83a | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f3129282bf54151da680ec06 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.readControl | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L311-L319 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readControl
(tuwien.auto.calimero.GroupAddress) | public byte readControl(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 0, 0);
final DPTXlator3BitControlled t =
new DPTXlator3BitControlled(DPTXlator3BitControlled.DPT_CONTROL_DIMMING);
ext... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readControl
(tuwien.auto.calimero.GroupAddress)
public byte readControl(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 0, 0);
... | 140 | 118 | 377 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4d501c17ee4a0c3031f30282adc49c62c4c1d7236a56ae8494f0eca9a5fa9b1b | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
5d455633e6197f78055c9484 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.write | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L325-L332 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, boolean, byte) | public void write(GroupAddress dst, boolean control, byte stepcode)
throws KNXTimeoutException, KNXFormatException, KNXLinkClosedException
{
final DPTXlator3BitControlled t =
new DPTXlator3BitControlled(DPTXlator3BitControlled.DPT_CONTROL_DIMMING);
t.setValue(control, stepcode);
write(dst, priority, t... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, boolean, byte)
public void write(GroupAddress dst, boolean control, byte stepcode)
throws KNXTimeoutException, KNXFormatException, KNXLinkClosedException
{
final DPTXlator3BitControlled t =
new ... | 122 | 127 | 326 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 97714463e562c2648941ef33c3cd9354dfe1ad091025d2fa0ba0e21c4e043c98 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
0373b7e6d3157f7b2cf007b9 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.readFloat | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L338-L346 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readFloat
(tuwien.auto.calimero.GroupAddress) | public float readFloat(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 2, 2);
final DPTXlator2ByteFloat t =
new DPTXlator2ByteFloat(DPTXlator2ByteFloat.DPT_TEMPERATURE_DIFFERENCE);
extractGr... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readFloat
(tuwien.auto.calimero.GroupAddress)
public float readFloat(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 2, 2);
f... | 138 | 116 | 370 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0a2778dce4974a63998e93cee7e7a6167cc4b9cf94d7fcc7946212e315be0b31 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
af802a4044b5928deec8d3a6 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.write | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L352-L359 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, float) | public void write(GroupAddress dst, float value) throws KNXTimeoutException,
KNXFormatException, KNXLinkClosedException
{
final DPTXlator2ByteFloat t =
new DPTXlator2ByteFloat(DPTXlator2ByteFloat.DPT_TEMPERATURE_DIFFERENCE);
t.setValue(value);
write(dst, priority, t);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, float)
public void write(GroupAddress dst, float value) throws KNXTimeoutException,
KNXFormatException, KNXLinkClosedException
{
final DPTXlator2ByteFloat t =
new DPTXlator2ByteFloat(DPTXlator2B... | 112 | 119 | 290 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 40d4d73282e4cc864538fca28f0448aa15b1fdd49863de57206ab12faf6c6f90 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
cbfb24918ed63479c2740901 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.readString | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L365-L372 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readString
(tuwien.auto.calimero.GroupAddress) | public String readString(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 0, 14);
final DPTXlatorString t = new DPTXlatorString(DPTXlatorString.DPT_STRING_8859_1);
extractGroupASDU(apdu, t);
r... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#readString
(tuwien.auto.calimero.GroupAddress)
public String readString(GroupAddress dst) throws KNXTimeoutException,
KNXRemoteException, KNXLinkClosedException, KNXFormatException
{
final byte[] apdu = readFromGroup(dst, priority, 0, 14);
... | 132 | 117 | 343 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5ad88cc9c832a01e543b4ece660773208d0e0a60c895fad35633f655f032e86b | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d37a78ecaf2c9c8304d8b5bf | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.write | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L378-L384 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, java.lang.String) | public void write(GroupAddress dst, String value) throws KNXTimeoutException,
KNXFormatException, KNXLinkClosedException
{
final DPTXlatorString t = new DPTXlatorString(DPTXlatorString.DPT_STRING_8859_1);
t.setValue(value);
write(dst, priority, t);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.GroupAddress, java.lang.String)
public void write(GroupAddress dst, String value) throws KNXTimeoutException,
KNXFormatException, KNXLinkClosedException
{
final DPTXlatorString t = new DPTXlatorString(DPTXlatorSt... | 109 | 130 | 266 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7b17e65b5b977862b1a2dbb967c00ce1ecfe0ad2cad4cc0cc8de4ff202d51d37 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
00fa69d5b2d6cb02ebe9714e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.read | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L390-L399 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#read
(tuwien.auto.calimero.datapoint.Datapoint) | public String read(Datapoint dp) throws KNXException
{
if (dp.getDPT() == null)
throw new KNXIllegalArgumentException("specify DPT for datapoint");
final byte[] apdu = readFromGroup(dp.getMainAddress(), dp.getPriority(), 0, 14);
final DPTXlator t =
TranslatorTypes.createTranslator(dp.getMainNumber(),... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#read
(tuwien.auto.calimero.datapoint.Datapoint)
public String read(Datapoint dp) throws KNXException
{
if (dp.getDPT() == null)
throw new KNXIllegalArgumentException("specify DPT for datapoint");
final byte[] apdu = readFromGroup(dp.get... | 143 | 118 | 392 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c36f981f5faacd0b1f9cdcb42e672372a12d852cbcd7e4e201bf6dfce8df2caa | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
ab18fd248c095519e705f0f8 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.write | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L405-L411 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.datapoint.Datapoint, java.lang.String) | public void write(Datapoint dp, String value) throws KNXException
{
final DPTXlator t =
TranslatorTypes.createTranslator(dp.getMainNumber(), dp.getDPT());
t.setValue(value);
write(dp.getMainAddress(), dp.getPriority(), t);
} | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#write
(tuwien.auto.calimero.datapoint.Datapoint, java.lang.String)
public void write(Datapoint dp, String value) throws KNXException
{
final DPTXlator t =
TranslatorTypes.createTranslator(dp.getMainNumber(), dp.getDPT());
t.setValue(val... | 102 | 137 | 241 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5a1ccc43f86b63f29b1919cc7d00a465c62ec7030eeebca9597b16e271f54809 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
810d2ee515abb36d2f4d4fdf | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.detach | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L416-L431 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#detach() | public KNXNetworkLink detach()
{
// if we synchronize on method we would take into account
// a worst case blocking of response timeout seconds
synchronized (lnkListener) {
// wait of response time seconds
if (detached)
return null;
detached = true;
}
lnk.removeLinkListener(lnkListener... | /* (non-Javadoc)
@see tuwien.auto.calimero.process.ProcessCommunicator#detach()
public KNXNetworkLink detach()
{
// if we synchronize on method we would take into account
// a worst case blocking of response timeout seconds
synchronized (lnkListener) {
// wait of response time seconds
if (detached)
... | 141 | 79 | 473 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7f4ff81db90a84052bd7cfd0c92a733c8b7c6a30584e3a4a5432c990f5a0bbbd | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b98aeec720ac0a41b191f5a5 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.createGroupAPDU | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L522-L536 | train | java | Creates a group service application layer protocol data unit containing all
items of a DPT translator.
<p>
The transport layer bits in the first byte (TL / AL control field) are set 0. The
maximum length used for the ASDU is not checked.<br>
For DPTs occupying <= 6 bits in length the optimized (compact) group write ... | private static byte[] createGroupAPDU(int service, DPTXlator t)
{
// check for group read
if (service == 0x00)
return new byte[2];
// only group response and group write are allowed
if (service != 0x40 && service != 0x80)
throw new KNXIllegalArgumentException("not an APDU group service");
// de... | Creates a group service application layer protocol data unit containing all
items of a DPT translator.
<p>
The transport layer bits in the first byte (TL / AL control field) are set 0. The
maximum length used for the ASDU is not checked.<br>
For DPTs occupying <= 6 bits in length the optimized (compact) group write ... | 309 | 491 | 648 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 8e4b61b4b55f8bc555da104409d3766e85a1f8a8a131c094078e340f9a20d483 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
18b85244c2423c8bbe5a37be | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java | ProcessCommunicatorImpl.extractGroupASDU | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessCommunicatorImpl.java#L550-L555 | train | java | Extracts the service data unit of an application layer protocol data unit into a
DPT translator.
<p>
The whole service data unit is taken as data for translation. If the length of the
supplied <code>apdu</code> is 2, a compact group APDU format layout is assumed.<br>
On return of this method, the supplied translator co... | private static void extractGroupASDU(byte[] apdu, DPTXlator t)
{
if (apdu.length < 2)
throw new KNXIllegalArgumentException("minimum APDU length is 2 bytes");
t.setData(apdu, apdu.length == 2 ? 1 : 2);
} | Extracts the service data unit of an application layer protocol data unit into a
DPT translator.
<p>
The whole service data unit is taken as data for translation. If the length of the
supplied <code>apdu</code> is 2, a compact group APDU format layout is assumed.<br>
On return of this method, the supplied translator co... | 185 | 476 | 217 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 065c2b2188ff36186c8ddc55d617365d2b314b823d2143ae29fbeba7faacf0e2 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
b899a68d01d49d85492fee5f | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorDate.java | DPTXlatorDate.getData | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/dptxlator/DPTXlatorDate.java#L273-L418 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int) | public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset) / 3 * 3;
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/* (non-Javadoc)
* @see tuwien.auto.calimero.dptxlator.DPTXlator#getSubTypes()
*/
public Map getS... | /* (non-Javadoc)
@see tuwien.auto.calimero.dptxlator.DPTXlator#getData(byte[], int)
public byte[] getData(byte[] dst, int offset)
{
final int end = Math.min(data.length, dst.length - offset) / 3 * 3;
for (int i = 0; i < end; ++i)
dst[offset + i] = (byte) data[i];
return dst;
}
/* (non-Javadoc)
... | 1,156 | 83 | 4,102 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 63d7890d8293da64a499f4eb00576b8afc450320e2546a12443bf64cfdca9b0f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4936b355f07829a74a92d3c0 | ow2-chameleon/fuchsia | examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/SetTimeAction.java | SetTimeAction.getStateVariable | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/SetTimeAction.java#L78-L82 | train | java | /* (non-Javadoc)
@see org.osgi.service.upnp.UPnPAction#getStateVariable(java.lang.String) | public UPnPStateVariable getStateVariable(String argumentName) {
if (argumentName.equals("NewTime")) return time;
else if (argumentName.equals("Result")) return result;
else return null;
} | /* (non-Javadoc)
@see org.osgi.service.upnp.UPnPAction#getStateVariable(java.lang.String)
public UPnPStateVariable getStateVariable(String argumentName) {
if (argumentName.equals("NewTime")) return time;
else if (argumentName.equals("Result")) return result;
else return null;
} | 67 | 89 | 195 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4e545bd26a1abed5d2c8effd69edeafb892a2df2c6cd89b231edf0530b4144ae | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
534809620c997530daa6a2d2 | ow2-chameleon/fuchsia | examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/SetTimeAction.java | SetTimeAction.invoke | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/SetTimeAction.java#L88-L96 | train | java | /* (non-Javadoc)
@see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary) | public Dictionary invoke(Dictionary args) throws Exception {
Long newValue = (Long) args.get(NEW_TIME_VALUE);
Long oldValue = (Long) ((TimeStateVariable) time).getCurrentValue();
((TimeStateVariable) time).setCurrentTime(newValue.longValue());
ClockDevice.notifier.propertyChange(new PropertyChangeEv... | /* (non-Javadoc)
@see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
public Dictionary invoke(Dictionary args) throws Exception {
Long newValue = (Long) args.get(NEW_TIME_VALUE);
Long oldValue = (Long) ((TimeStateVariable) time).getCurrentValue();
((TimeStateVariable) time).setCurrentTime(n... | 128 | 84 | 487 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e894353268d48b7680c854511fb8a9c357e2cffc699772df726cedc5de4cf8c2 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
211ca5f485acafd9f760a98a | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/ServiceRequest.java | ServiceRequest.toByteArray | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/ServiceRequest.java#L210-L219 | train | java | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray
(java.io.ByteArrayOutputStream) | byte[] toByteArray(ByteArrayOutputStream os)
{
os.write(CONN_HEADER_SIZE);
os.write(channelid);
os.write(seq);
os.write(0);
final byte[] buf = cemi.toByteArray();
os.write(buf, 0, buf.length);
return os.toByteArray();
} | /* (non-Javadoc)
@see tuwien.auto.calimero.knxnetip.servicetype.ServiceType#toByteArray
(java.io.ByteArrayOutputStream)
byte[] toByteArray(ByteArrayOutputStream os)
{
os.write(CONN_HEADER_SIZE);
os.write(channelid);
os.write(seq);
os.write(0);
final byte[] buf = cemi.toByteArray();
os.write(buf, 0,... | 96 | 119 | 244 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c9c3ea7c36e66420d2fb32c2d9571c22bcc52c68b85376cdc2f4a3e3938d1a1b | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
ec48113e9f16895b06bf0e6a | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMIFactory.java | CEMIFactory.createFromEMI | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMIFactory.java#L200-L223 | train | java | Creates a new cEMI message out of the supplied EMI frame.
<p>
@param frame EMI frame
@return the new cEMI message
@throws KNXFormatException if no (valid) EMI structure was found or unsupported EMI
message code | public static CEMI createFromEMI(byte[] frame) throws KNXFormatException
{
// check for minimum frame length (i.e. busmonitor)
if (frame.length < 4)
throw new KNXFormatException("EMI frame too short");
final int mc = frame[0] & 0xff;
if (mc == CEMIBusMon.MC_BUSMON_IND) {
return new CEMIBusMon(fram... | Creates a new cEMI message out of the supplied EMI frame.
<p>
@param frame EMI frame
@return the new cEMI message
@throws KNXFormatException if no (valid) EMI structure was found or unsupported EMI
message code
public static CEMI createFromEMI(byte[] frame) throws KNXFormatException
{
// check for minimum frame ... | 462 | 211 | 1,115 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 91d65a8cdb33485537811cbe70a62ab070443dfc20a26e9ff7bca84645f2ff56 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
befabb43f7c59c4898e7a843 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMIFactory.java | CEMIFactory.create | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/cemi/CEMIFactory.java#L244-L269 | train | java | leave msgcode/src/dst/data null/0 to use from original | private static CEMI create(int msgCode, IndividualAddress src, KNXAddress dst,
byte[] data, CEMILData original, boolean ext)
{
final int mc = msgCode != 0 ? msgCode : original.getMessageCode();
final IndividualAddress s = src != null ? src : original.getSource();
final KNXAddress d = dst != null ? dst : o... | leave msgcode/src/dst/data null/0 to use from original
private static CEMI create(int msgCode, IndividualAddress src, KNXAddress dst,
byte[] data, CEMILData original, boolean ext)
{
final int mc = msgCode != 0 ? msgCode : original.getMessageCode();
final IndividualAddress s = src != null ? src : original.ge... | 344 | 54 | 1,231 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 6377c740bfcae810071aa0c0355c7cb6a0ec21863a001a0f2e9d508fc27659ec | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
20e9fcf1f4a75e2c046e801d | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.startup | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L142-L157 | train | java | Constructors | @Validate
public void startup(){
try {
logger.info("Starting Z-Wave controller");
connect(serialPortName);
this.watchdog = new Timer(true);
this.watchdog.schedule(
new WatchDogTimerTask(serialPortName),
WATCHDOG_TIMER_PERIOD, WATCHDOG_TIMER_PERIOD);
} catch (SerialInterfaceException e) {
... | Constructors
@Validate
public void startup(){
try {
logger.info("Starting Z-Wave controller");
connect(serialPortName);
this.watchdog = new Timer(true);
this.watchdog.schedule(
new WatchDogTimerTask(serialPortName),
WATCHDOG_TIMER_PERIOD, WATCHDOG_TIMER_PERIOD);
} catch (SerialInterfaceExce... | 97 | 12 | 401 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 597610dc58b5d5bbe612fc0c56d22b1421bc482b704c1299b5eb7e1d543006c4 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
cffbcea3fe481b8ce96ae01b | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleIncomingMessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L182-L197 | train | java | Handles incoming Serial Messages. Serial messages can either be messages
that are a response to our own requests, or the stick asking us information.
@param incomingMessage the incoming message to process. | private void handleIncomingMessage(SerialMessage incomingMessage) {
logger.debug("Incoming message to process");
logger.debug(incomingMessage.toString());
switch (incomingMessage.getMessageType()) {
case Request:
handleIncomingRequestMessage(incomingMessage);
break;
case Response:
handleIn... | Handles incoming Serial Messages. Serial messages can either be messages
that are a response to our own requests, or the stick asking us information.
@param incomingMessage the incoming message to process.
private void handleIncomingMessage(SerialMessage incomingMessage) {
logger.debug("Incoming message to proces... | 137 | 205 | 483 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 095f1e7f9eac2022a16db83ae8bc4aa9dbaeff445eb9c489a2ae3c2d32b9a39c | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
619954abe690faf167e79012 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleIncomingRequestMessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L204-L222 | train | java | Handles an incoming request message.
An incoming request message is a message initiated by a node or the controller.
@param incomingMessage the incoming message to process. | private void handleIncomingRequestMessage(SerialMessage incomingMessage) {
logger.debug("Message type = REQUEST");
switch (incomingMessage.getMessageClass()) {
case ApplicationCommandHandler:
handleApplicationCommandRequest(incomingMessage);
break;
case SendData:
handleSendDataRequest(incomingMess... | Handles an incoming request message.
An incoming request message is a message initiated by a node or the controller.
@param incomingMessage the incoming message to process.
private void handleIncomingRequestMessage(SerialMessage incomingMessage) {
logger.debug("Message type = REQUEST");
switch (incomingMessage.get... | 167 | 172 | 650 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 63e83d4fd02344058d18b475616e1843a96059404ff95a2c4ae74f13e80144b9 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
932f0b70435597605250d138 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleApplicationCommandRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L228-L266 | train | java | Handles incoming Application Command Request.
@param incomingMessage the request message to process. | private void handleApplicationCommandRequest(SerialMessage incomingMessage) {
logger.trace("Handle Message Application Command Request");
int nodeId = incomingMessage.getMessagePayloadByte(1);
logger.debug("Application Command Request from Node " + nodeId);
ZWaveNode node = getNode(nodeId);
if (node == nul... | Handles incoming Application Command Request.
@param incomingMessage the request message to process.
private void handleApplicationCommandRequest(SerialMessage incomingMessage) {
logger.trace("Handle Message Application Command Request");
int nodeId = incomingMessage.getMessagePayloadByte(1);
logger.debug("Appli... | 429 | 100 | 1,876 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | af12e403bfaaca0ffb1e6c5446478b4fc4a900e46d5c0f77e133fea07f3237d2 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d7747f92b463179008e64fd6 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleSendDataRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L273-L320 | train | java | Handles incoming Send Data Request. Send Data request are used
to acknowledge or cancel failed messages.
@param incomingMessage the request message to process. | private void handleSendDataRequest(SerialMessage incomingMessage) {
logger.trace("Handle Message Send Data Request");
int callbackId = incomingMessage.getMessagePayloadByte(0);
TransmissionState status = TransmissionState.getTransmissionState(incomingMessage.getMessagePayloadByte(1));
SerialMessage originalM... | Handles incoming Send Data Request. Send Data request are used
to acknowledge or cancel failed messages.
@param incomingMessage the request message to process.
private void handleSendDataRequest(SerialMessage incomingMessage) {
logger.trace("Handle Message Send Data Request");
int callbackId = incomingMessage.g... | 453 | 159 | 1,966 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e5cf9034517d7b66f7c11da619bc342e48623b08ffc0bc5104a19ca4b68a6264 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
593b9cfebb23124250a00e34 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleFailedSendDataRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L327-L348 | train | java | Handles a failed SendData request. This can either be because of the stick actively reporting it
or because of a time-out of the transaction in the send thread.
@param originalMessage the original message that was sent | private void handleFailedSendDataRequest(SerialMessage originalMessage) {
ZWaveNode node = this.getNode(originalMessage.getMessageNode());
if (node.getNodeStage() == NodeStage.NODEBUILDINFO_DEAD)
return;
if (!node.isListening() && originalMessage.getPriority() != SerialMessage.SerialMessagePriority.Low) ... | Handles a failed SendData request. This can either be because of the stick actively reporting it
or because of a time-out of the transaction in the send thread.
@param originalMessage the original message that was sent
private void handleFailedSendDataRequest(SerialMessage originalMessage) {
ZWaveNode node = this.ge... | 269 | 218 | 965 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e5fd52bdf552aed4857a32e8422fa03e9484acf726c27e8955c3dbee7af32583 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
208007b53a9705a3d3d1794b | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleApplicationUpdateRequest | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L354-L412 | train | java | Handles incoming Application Update Request.
@param incomingMessage the request message to process. | private void handleApplicationUpdateRequest(SerialMessage incomingMessage) {
logger.trace("Handle Message Application Update Request");
int nodeId = incomingMessage.getMessagePayloadByte(1);
logger.trace("Application Update Request from Node " + nodeId);
UpdateState updateState = UpdateState.getUpdateState(i... | Handles incoming Application Update Request.
@param incomingMessage the request message to process.
private void handleApplicationUpdateRequest(SerialMessage incomingMessage) {
logger.trace("Handle Message Application Update Request");
int nodeId = incomingMessage.getMessagePayloadByte(1);
logger.trace("Appli... | 567 | 99 | 2,557 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 57cdfcf44c369593e8906364c431fa75e92f3c0e48ebaca3f3fb681abb3ce3d6 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
dbd939fc4193784b41f19d05 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleIncomingResponseMessage | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L419-L474 | train | java | Handles an incoming response message.
An incoming response message is a response, based one of our own requests.
@param incomingMessage the response message to process. | private void handleIncomingResponseMessage(SerialMessage incomingMessage) {
logger.debug("Message type = RESPONSE");
switch (incomingMessage.getMessageClass()) {
case GetVersion:
handleGetVersionResponse(incomingMessage);
if (incomingMessage.getMessageClass() == this.lastSentMessage.getExpectedReply() &&... | Handles an incoming response message.
An incoming response message is a response, based one of our own requests.
@param incomingMessage the response message to process.
private void handleIncomingResponseMessage(SerialMessage incomingMessage) {
logger.debug("Message type = RESPONSE");
switch (incomingMessage.getMe... | 678 | 168 | 3,195 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9259f8c7d86727eb87188918341241027674898a189a0c5bfd61095da8708463 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d80457453125f7e1397dfc56 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleGetVersionResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L480-L484 | train | java | Handles the response of the getVersion request.
@param incomingMessage the response message to process. | private void handleGetVersionResponse(SerialMessage incomingMessage) {
this.ZWaveLibraryType = incomingMessage.getMessagePayloadByte(12);
this.zWaveVersion = new String(ArrayUtils.subarray(incomingMessage.getMessagePayload(), 0, 11));
logger.debug(String.format("Got MessageGetVersion response. Version = %s, Libra... | Handles the response of the getVersion request.
@param incomingMessage the response message to process.
private void handleGetVersionResponse(SerialMessage incomingMessage) {
this.ZWaveLibraryType = incomingMessage.getMessagePayloadByte(12);
this.zWaveVersion = new String(ArrayUtils.subarray(incomingMessage.getMes... | 107 | 103 | 375 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b3888b9e566137f07decb77ab6c7d9ffbb2ac6f013d2cd3c16d460d265525a8e | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
ddfcd8b6ec97faccbcc1e761 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleSerialApiGetInitDataResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L490-L525 | train | java | Handles the response of the SerialApiGetInitData request.
@param incomingMlivessage the response message to process. | private void handleSerialApiGetInitDataResponse(
SerialMessage incomingMessage) {
logger.debug(String.format("Got MessageSerialApiGetInitData response."));
this.isConnected = true;
int nodeBytes = incomingMessage.getMessagePayloadByte(2);
if (nodeBytes != NODE_BYTES) {
logger.error("Invalid number of n... | Handles the response of the SerialApiGetInitData request.
@param incomingMlivessage the response message to process.
private void handleSerialApiGetInitDataResponse(
SerialMessage incomingMessage) {
logger.debug(String.format("Got MessageSerialApiGetInitData response."));
this.isConnected = true;
int nodeByte... | 342 | 116 | 1,245 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | af2a9eb0392694d402f08c4fbfbb9ea4ba980d2587e7334a75c8b8bdb688c71f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
cc4ff7f5e5a8a826fa12848f | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleMemoryGetId | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L532-L539 | train | java | Handles the response of the MemoryGetId request.
The MemoryGetId function gets the home and node id from the controller memory.
@param incomingMessage the response message to process. | private void handleMemoryGetId(SerialMessage incomingMessage) {
this.homeId = ((incomingMessage.getMessagePayloadByte(0)) << 24) |
((incomingMessage.getMessagePayloadByte(1)) << 16) |
((incomingMessage.getMessagePayloadByte(2)) << 8) |
(incomingMessage.getMessagePayloadByte(3));
this.ownNodeId = inco... | Handles the response of the MemoryGetId request.
The MemoryGetId function gets the home and node id from the controller memory.
@param incomingMessage the response message to process.
private void handleMemoryGetId(SerialMessage incomingMessage) {
this.homeId = ((incomingMessage.getMessagePayloadByte(0)) << 24) |
... | 168 | 183 | 498 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 10fe5f5291fe494fc9a97bbe7f9a603c5c2427b4c864c421548b10a053c6838f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
13e19f92324f0a8d865a8fea | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleIdentifyNodeResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L545-L609 | train | java | Handles the response of the IdentifyNode request.
@param incomingMessage the response message to process. | private void handleIdentifyNodeResponse(SerialMessage incomingMessage) {
logger.trace("Handle Message Get Node ProtocolInfo Response");
int nodeId = lastSentMessage.getMessagePayloadByte(0);
logger.debug("ProtocolInfo for Node = " + nodeId);
boolean listening = (incomingMessage.getMessagePayloadByte(0) & ... | Handles the response of the IdentifyNode request.
@param incomingMessage the response message to process.
private void handleIdentifyNodeResponse(SerialMessage incomingMessage) {
logger.trace("Handle Message Get Node ProtocolInfo Response");
int nodeId = lastSentMessage.getMessagePayloadByte(0);
logger.debug(... | 838 | 105 | 3,371 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 00db8d7f79c32c3874672dd4a1df1741a8542bbda88b959c38517f5281400696 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
87b41772e4a777afbbdf4ca8 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleSerialAPIGetCapabilitiesResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L615-L630 | train | java | Handles the response of the SerialAPIGetCapabilities request.
@param incomingMessage the response message to process. | private void handleSerialAPIGetCapabilitiesResponse(SerialMessage incomingMessage) {
logger.trace("Handle Message Serial API Get Capabilities");
this.serialAPIVersion = String.format("%d.%d", incomingMessage.getMessagePayloadByte(0), incomingMessage.getMessagePayloadByte(1));
this.manufactureId = ((incomingMessa... | Handles the response of the SerialAPIGetCapabilities request.
@param incomingMessage the response message to process.
private void handleSerialAPIGetCapabilitiesResponse(SerialMessage incomingMessage) {
logger.trace("Handle Message Serial API Get Capabilities");
this.serialAPIVersion = String.format("%d.%d", inco... | 296 | 117 | 1,221 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e2b39947924dd1afa67d138c09923266d66d81f4bc990f5bfc69ed59b55b1bfb | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
6aba4820eace40fa75e64bce | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleSendDataResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L636-L642 | train | java | Handles the response of the SendData request.
@param incomingMessage the response message to process. | private void handleSendDataResponse(SerialMessage incomingMessage) {
logger.trace("Handle Message Send Data Response");
if(incomingMessage.getMessageBuffer()[2] != 0x00)
logger.debug("Sent Data successfully placed on stack.");
else
logger.error("Sent Data was not placed on stack due to error.");
} | Handles the response of the SendData request.
@param incomingMessage the response message to process.
private void handleSendDataResponse(SerialMessage incomingMessage) {
logger.trace("Handle Message Send Data Response");
if(incomingMessage.getMessageBuffer()[2] != 0x00)
logger.debug("Sent Data successfully pla... | 88 | 101 | 311 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e925c4a6a8142f3e2f332cde5dcfbdf0c5b346d22d3643115fa14eb58d27d2fb | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
3116a4b571a2e63f694fe4a0 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.handleRequestNodeInfoResponse | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L648-L654 | train | java | Handles the response of the Request node request.
@param incomingMessage the response message to process. | private void handleRequestNodeInfoResponse(SerialMessage incomingMessage) {
logger.trace("Handle RequestNodeInfo Response");
if(incomingMessage.getMessageBuffer()[2] != 0x00)
logger.debug("Request node info successfully placed on stack.");
else
logger.error("Request node info not placed on stack due to erro... | Handles the response of the Request node request.
@param incomingMessage the response message to process.
private void handleRequestNodeInfoResponse(SerialMessage incomingMessage) {
logger.trace("Handle RequestNodeInfo Response");
if(incomingMessage.getMessageBuffer()[2] != 0x00)
logger.debug("Request node info... | 90 | 105 | 328 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a7fd299fcb425c410a97a2856e5e1c833db9378755918d4a452d753f75be4f6c | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
6b1d362afed7fc4a8fd946e1 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.connect | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L663-L689 | train | java | Connects to the comm port and starts send and receive threads.
@param serialPortName the port name to open
@throws SerialInterfaceException when a connection error occurs. | public void connect(final String serialPortName)
throws SerialInterfaceException {
logger.info("Connecting to serial port {}", serialPortName);
try {
CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier(serialPortName);
CommPort commPort = portIdentifier.open("org.openhab.binding.zwave"... | Connects to the comm port and starts send and receive threads.
@param serialPortName the port name to open
@throws SerialInterfaceException when a connection error occurs.
public void connect(final String serialPortName)
throws SerialInterfaceException {
logger.info("Connecting to serial port {}", serialPortName)... | 313 | 171 | 1,251 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 524176e9085b6cb8b8c32d499168ccf31a7c0fc474bc063a78413b8c13ffc4b5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
5a8164ac6f1bb74d05a7c6df | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.close | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L694-L714 | train | java | Closes the connection to the Z-Wave controller. | public void close() {
if (watchdog != null) {
watchdog.cancel();
watchdog = null;
}
disconnect();
// clear nodes collection and send queue
for (Object listener : this.zwaveEventListeners.toArray()) {
if (!(listener instanceof ZWaveNode))
continue;
this.zwaveEventListeners.remove(list... | Closes the connection to the Z-Wave controller.
public void close() {
if (watchdog != null) {
watchdog.cancel();
watchdog = null;
}
disconnect();
// clear nodes collection and send queue
for (Object listener : this.zwaveEventListeners.toArray()) {
if (!(listener instanceof ZWaveNode))
cont... | 124 | 47 | 436 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d2096fb4e540514108dc7209131f78e00d7c0a1f7c4344af0a9ad261154dfe2b | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
063aeabd18eb718af97af3ed | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.disconnect | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L720-L747 | train | java | Disconnects from the serial interface and stops
send and receive threads. | public void disconnect() {
if (sendThread != null) {
sendThread.interrupt();
try {
sendThread.join();
} catch (InterruptedException e) {
}
sendThread = null;
}
if (receiveThread != null) {
receiveThread.interrupt();
try {
receiveThread.join();
} catch (InterruptedException e) {
... | Disconnects from the serial interface and stops
send and receive threads.
public void disconnect() {
if (sendThread != null) {
sendThread.interrupt();
try {
sendThread.join();
} catch (InterruptedException e) {
}
sendThread = null;
}
if (receiveThread != null) {
receiveThread.interrupt();
... | 196 | 73 | 760 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | da250f92659cb5396208529251aadee6a9f9252bcc91ab43f62537a92c54c24d | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
0d3e7a15ee5ef2f88ba29099 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.enqueue | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L753-L756 | train | java | Enqueues a message for sending on the send thread.
@param serialMessage the serial message to enqueue. | public void enqueue(SerialMessage serialMessage) {
this.sendQueue.add(serialMessage);
logger.debug("Enqueueing message. Queue length = {}", this.sendQueue.size());
} | Enqueues a message for sending on the send thread.
@param serialMessage the serial message to enqueue.
public void enqueue(SerialMessage serialMessage) {
this.sendQueue.add(serialMessage);
logger.debug("Enqueueing message. Queue length = {}", this.sendQueue.size());
} | 58 | 102 | 170 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 935c623953ee667d9de2c0344dd327a99dc40ed097114106f0dbe84d7b9e1261 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1123ec017f537ee3f831cab6 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.notifyEventListeners | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L762-L768 | train | java | Notify our own event listeners of a Z-Wave event.
@param event the event to send. | public void notifyEventListeners(ZWaveEvent event) {
logger.debug("Notifying event listeners");
for (ZWaveEventListener listener : this.zwaveEventListeners) {
logger.trace("Notifying {}", listener.toString());
listener.ZWaveIncomingEvent(event);
}
} | Notify our own event listeners of a Z-Wave event.
@param event the event to send.
public void notifyEventListeners(ZWaveEvent event) {
logger.debug("Notifying event listeners");
for (ZWaveEventListener listener : this.zwaveEventListeners) {
logger.trace("Notifying {}", listener.toString());
listener.ZWaveInc... | 78 | 81 | 262 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 296628d646daf19797bc0ecc44e3e0c2857da41d61308bcac3cfdd4694f0fd6f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4e7f8fadd72455b4fc7fb0ae | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.initialize | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L773-L777 | train | java | Initializes communication with the Z-Wave controller stick. | public void initialize() {
this.enqueue(new SerialMessage(SerialMessage.SerialMessageClass.GetVersion, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.GetVersion, SerialMessage.SerialMessagePriority.High));
this.enqueue(new SerialMessage(SerialMessage.SerialMessageClass.MemoryGetId, Serial... | Initializes communication with the Z-Wave controller stick.
public void initialize() {
this.enqueue(new SerialMessage(SerialMessage.SerialMessageClass.GetVersion, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.GetVersion, SerialMessage.SerialMessagePriority.High));
this.enqueue(new Seria... | 132 | 59 | 683 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5464148598a663242c61c08dbbaa39f1cf16e9df02f5720cad7f30008fb3b7a7 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
0bce30dc31e0ef406422f36f | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.identifyNode | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L784-L789 | train | java | Send Identify Node message to the controller.
@param nodeId the nodeId of the node to identify
@throws SerialInterfaceException when timing out or getting an invalid response. | public void identifyNode(int nodeId) throws SerialInterfaceException {
SerialMessage newMessage = new SerialMessage(nodeId, SerialMessage.SerialMessageClass.IdentifyNode, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.IdentifyNode, SerialMessage.SerialMessagePriority.High);
byte[] newP... | Send Identify Node message to the controller.
@param nodeId the nodeId of the node to identify
@throws SerialInterfaceException when timing out or getting an invalid response.
public void identifyNode(int nodeId) throws SerialInterfaceException {
SerialMessage newMessage = new SerialMessage(nodeId, SerialMessage.Ser... | 117 | 175 | 428 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a2f9915e2d40c410a0ffb2da3f07e8d740b71b7dc9aff089ab58a4cfce3a0d8f | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a5e6251154b1fb1fb1603231 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.requestNodeInfo | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L796-L801 | train | java | Send Request Node info message to the controller.
@param nodeId the nodeId of the node to identify
@throws SerialInterfaceException when timing out or getting an invalid response. | public void requestNodeInfo(int nodeId) {
SerialMessage newMessage = new SerialMessage(nodeId, SerialMessage.SerialMessageClass.RequestNodeInfo, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.ApplicationUpdate, SerialMessage.SerialMessagePriority.High);
byte[] newPayload = { (byte) nod... | Send Request Node info message to the controller.
@param nodeId the nodeId of the node to identify
@throws SerialInterfaceException when timing out or getting an invalid response.
public void requestNodeInfo(int nodeId) {
SerialMessage newMessage = new SerialMessage(nodeId, SerialMessage.SerialMessageClass.RequestNo... | 112 | 179 | 407 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3b6bbe1f9c4377533501b4f805ed79fa0fd6b6d246119b5d6c23e5bcc71e19c1 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
5a3feb9b3564eaadec39593b | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.checkForDeadOrSleepingNodes | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L807-L847 | train | java | Checks for dead or sleeping nodes during Node initialization.
JwS: merged checkInitComplete and checkForDeadOrSleepingNodes to prevent possibly looping nodes multiple times. | public void checkForDeadOrSleepingNodes(){
int completeCount = 0;
if (zwaveNodes.isEmpty())
return;
// There are still nodes waiting to get a ping.
// So skip the dead node checking.
for (SerialMessage serialMessage : sendQueue) {
if (serialMessage.getPriority() == SerialMessage.SerialMessagePrior... | Checks for dead or sleeping nodes during Node initialization.
JwS: merged checkInitComplete and checkForDeadOrSleepingNodes to prevent possibly looping nodes multiple times.
public void checkForDeadOrSleepingNodes(){
int completeCount = 0;
if (zwaveNodes.isEmpty())
return;
// There are still nodes waiti... | 405 | 173 | 1,552 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0ad2d3d1e1f8e933e02c0e15548ee2fc56719aa5c56039f1ca3b7517b5cdffe3 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
fc8c41a07cfdead85728a55d | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.requestValue | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L854-L874 | train | java | Request value from the node / endpoint;
@param nodeId the node id to request the value for.
@param endpoint the endpoint to request the value for. | public void requestValue(int nodeId, int endpoint) {
ZWaveNode node = this.getNode(nodeId);
ZWaveGetCommands zwaveCommandClass = null;
SerialMessage serialMessage = null;
for (ZWaveCommandClass.CommandClass commandClass : new ZWaveCommandClass.CommandClass[] { ZWaveCommandClass.CommandClass.SENSOR_BINARY, Z... | Request value from the node / endpoint;
@param nodeId the node id to request the value for.
@param endpoint the endpoint to request the value for.
public void requestValue(int nodeId, int endpoint) {
ZWaveNode node = this.getNode(nodeId);
ZWaveGetCommands zwaveCommandClass = null;
SerialMessage serialMessage = n... | 286 | 146 | 1,050 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e8a5a79ac20936e9fb03902920590b8d3489054de75e2cfa5ffdc4afba3de153 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
332c86a45f4845629b3faf67 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.requestBatteryLevel | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L881-L896 | train | java | Request the battery level from the node / endpoint;
@param nodeId the node id to request the battery level for.
@param endpoint the endpoint to request the battery level for. | public void requestBatteryLevel(int nodeId, int endpoint) {
ZWaveNode node = this.getNode(nodeId);
SerialMessage serialMessage = null;
ZWaveBatteryCommandClass zwaveBatteryCommandClass = (ZWaveBatteryCommandClass)node.resolveCommandClass(ZWaveCommandClass.CommandClass.BATTERY, endpoint);
if (zwaveBatteryC... | Request the battery level from the node / endpoint;
@param nodeId the node id to request the battery level for.
@param endpoint the endpoint to request the battery level for.
public void requestBatteryLevel(int nodeId, int endpoint) {
ZWaveNode node = this.getNode(nodeId);
SerialMessage serialMessage = null;
... | 187 | 174 | 666 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 90d8c42f2337af5af8beaa2f1e685bf5ea5284670bf895b5f9fc96755df3bb6d | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
bb54b97fefa7eaff2c9cefff | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.increaseLevel | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L904-L924 | train | java | increase level on the node / endpoint. The level is
increased. Only dimmers support this.
@param nodeId the node id to increase the level for.
@param endpoint the endpoint to increase the level for. | public void increaseLevel(int nodeId, int endpoint) {
ZWaveNode node = this.getNode(nodeId);
SerialMessage serialMessage = null;
ZWaveMultiLevelSwitchCommandClass zwaveCommandClass = (ZWaveMultiLevelSwitchCommandClass)node.resolveCommandClass(ZWaveCommandClass.CommandClass.SWITCH_MULTILEVEL, endpoint);
if... | increase level on the node / endpoint. The level is
increased. Only dimmers support this.
@param nodeId the node id to increase the level for.
@param endpoint the endpoint to increase the level for.
public void increaseLevel(int nodeId, int endpoint) {
ZWaveNode node = this.getNode(nodeId);
SerialMessage serialMes... | 244 | 198 | 822 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e9f9127009f628fb5b6f902afe069f918dd43e4ca1937777dc467321695f32ac | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1a796de8d6b93cd6d98b0979 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.sendData | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L959-L992 | train | java | Transmits the SerialMessage to a single Z-Wave Node.
Sets the transmission options as well.
@param serialMessage the Serial message to send. | public void sendData(SerialMessage serialMessage)
{
if (serialMessage.getMessageClass() != SerialMessage.SerialMessageClass.SendData) {
logger.error(String.format("Invalid message class %s (0x%02X) for sendData", serialMessage.getMessageClass().getLabel(), serialMessage.getMessageClass().getKey()));
r... | Transmits the SerialMessage to a single Z-Wave Node.
Sets the transmission options as well.
@param serialMessage the Serial message to send.
public void sendData(SerialMessage serialMessage)
{
if (serialMessage.getMessageClass() != SerialMessage.SerialMessageClass.SendData) {
logger.error(String.format("In... | 385 | 140 | 1,520 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d537e2c9c1780aa8ffee350882cbf37f7c19bdc0927c597dc80aab5fc8277c93 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
c85b566aaacc8d2e65b58897 | ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java | ZWaveController.sendValue | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/protocol/ZWaveController.java#L1000-L1024 | train | java | Send value to node.
@param nodeId the node Id to send the value to.
@param endpoint the endpoint to send the value to.
@param value the value to send | public void sendValue(int nodeId, int endpoint, int value) {
ZWaveNode node = this.getNode(nodeId);
ZWaveSetCommands zwaveCommandClass = null;
SerialMessage serialMessage = null;
for (ZWaveCommandClass.CommandClass commandClass : new ZWaveCommandClass.CommandClass[] { ZWaveCommandClass.CommandClass.SWITCH_MU... | Send value to node.
@param nodeId the node Id to send the value to.
@param endpoint the endpoint to send the value to.
@param value the value to send
public void sendValue(int nodeId, int endpoint, int value) {
ZWaveNode node = this.getNode(nodeId);
ZWaveSetCommands zwaveCommandClass = null;
SerialMessage serial... | 319 | 149 | 1,133 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e6f1aeb967968e4bab38470ebf855759a84e671cef893ecf3c843898169cd3e1 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
efb618836afe7ac01aa6d0b0 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java | ProcessListenerEx.asBool | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java#L128-L133 | train | java | Returns the ASDU of the received process event as boolean datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with the ASDU ... | public boolean asBool(ProcessEvent e) throws KNXFormatException
{
final DPTXlatorBoolean t = new DPTXlatorBoolean(DPTXlatorBoolean.DPT_BOOL);
t.setData(e.getASDU());
return t.getValueBoolean();
} | Returns the ASDU of the received process event as boolean datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with the ASDU ... | 152 | 448 | 208 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a985529e7bbedeb9f0cd7e55b41c5e7956694a14300a68dfcd52d17c3745453c | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
1ebf23aa96f4f102c4b7879e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java | ProcessListenerEx.asUnsigned | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java#L149-L154 | train | java | Returns the ASDU of the received process event as unsigned 8 Bit datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with th... | public short asUnsigned(ProcessEvent e, String scale) throws KNXFormatException
{
final DPTXlator8BitUnsigned t = new DPTXlator8BitUnsigned(scale);
t.setData(e.getASDU());
return t.getValueUnsigned();
} | Returns the ASDU of the received process event as unsigned 8 Bit datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with th... | 185 | 571 | 215 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | dabac49c9fdfd13987164f288fc7e4597c0e9fc8116460c3ae2f0b8b61a20427 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
a13ab756f06249669825f060 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java | ProcessListenerEx.asControl | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java#L168-L174 | train | java | Returns the ASDU of the received process event as 3 Bit controlled datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with ... | public byte asControl(ProcessEvent e) throws KNXFormatException
{
final DPTXlator3BitControlled t = new DPTXlator3BitControlled(
DPTXlator3BitControlled.DPT_CONTROL_DIMMING);
t.setData(e.getASDU());
return t.getValueSigned();
} | Returns the ASDU of the received process event as 3 Bit controlled datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with ... | 174 | 475 | 244 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 946613f9bf70825cc325c31812858035cff2117983c6500683268ec051f90c74 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
f20c6416c7c6cfc02d1d7491 | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java | ProcessListenerEx.asFloat | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java#L188-L194 | train | java | Returns the ASDU of the received process event as 2 byte KNX float datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with ... | public float asFloat(ProcessEvent e) throws KNXFormatException
{
final DPTXlator2ByteFloat t = new DPTXlator2ByteFloat(
DPTXlator2ByteFloat.DPT_TEMPERATURE_DIFFERENCE);
t.setData(e.getASDU());
return t.getValueFloat();
} | Returns the ASDU of the received process event as 2 byte KNX float datapoint value.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@param e the process event with ... | 168 | 453 | 237 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 79e3bc76138a97c8d7a1603d354761c6001f4eae435755f18db76cc6379113b5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
c5af43f5c15450e754a8077e | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java | ProcessListenerEx.asString | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java#L211-L216 | train | java | Returns the ASDU of the received process event as string datapoint value.
<p>
The used character set is ISO-8859-1 (Latin 1), with an allowed string length of 14
characters.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(Pr... | public String asString(ProcessEvent e) throws KNXFormatException
{
final DPTXlatorString t = new DPTXlatorString(DPTXlatorString.DPT_STRING_8859_1);
t.setData(e.getASDU());
return t.getValue();
} | Returns the ASDU of the received process event as string datapoint value.
<p>
The used character set is ISO-8859-1 (Latin 1), with an allowed string length of 14
characters.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(Pr... | 190 | 549 | 208 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a1e4a682247912d87aaa7c7cd538402669541a26505f70d405a04c5a4e7bc990 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
523bdcaac600a3de2ac39b2c | ow2-chameleon/fuchsia | bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java | ProcessListenerEx.asString | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/bases/knx/calimero/src/main/java/tuwien/auto/calimero/process/ProcessListenerEx.java#L235-L241 | train | java | Returns the ASDU of the received process event as datapoint value of the requested
DPT in String representation.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@pa... | public String asString(ProcessEvent e, int dptMainNumber, String dptID)
throws KNXException
{
final DPTXlator t = TranslatorTypes.createTranslator(dptMainNumber, dptID);
t.setData(e.getASDU());
return t.getValue();
} | Returns the ASDU of the received process event as datapoint value of the requested
DPT in String representation.
<p>
This method has to be invoked manually by the user (either in
{@link #groupReadResponse(ProcessEvent)} or
{@link ProcessListener#groupWrite(ProcessEvent)}), depending on the received
datapoint type.
@pa... | 234 | 769 | 232 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 63cb363abb6c856bf5b3a1ec8a05aa179b05a33ac9d46978bec371875a811bd3 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
658572e1a808ff2c89f6be85 | ow2-chameleon/fuchsia | examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/Clock.java | Clock.toClockString | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/Clock.java#L70-L75 | train | java | ////////////////////////////////////////////// | public final static String toClockString(int value)
{
if (value < 10)
return "0" + Integer.toString(value);
return Integer.toString(value);
} | //////////////////////////////////////////////
public final static String toClockString(int value)
{
if (value < 10)
return "0" + Integer.toString(value);
return Integer.toString(value);
} | 41 | 46 | 150 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 153e8dc41181d5fc07a4f5349dcf5d1dbe150ff4c0aace2ddbd0100032dcf6e5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
026599d503dc2d2b5bcbcc0e | ow2-chameleon/fuchsia | examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/Clock.java | Clock.getTimeString | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/examples/upnp-components/src/main/java/org/ow2/chameleon/fuchsia/upnp/clock/Clock.java#L132-L139 | train | java | ////////////////////////////////////////////// | public String getTimeString()
{
Calendar cal = getCalendar();
return
toClockString(cal.get(Calendar.HOUR)) +
(((cal.get(Calendar.SECOND) % 2) == 0) ? ":" : " ") +
toClockString(cal.get(Calendar.MINUTE));
} | //////////////////////////////////////////////
public String getTimeString()
{
Calendar cal = getCalendar();
return
toClockString(cal.get(Calendar.HOUR)) +
(((cal.get(Calendar.SECOND) % 2) == 0) ? ":" : " ") +
toClockString(cal.get(Calendar.MINUTE));
} | 66 | 46 | 220 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b74909168eae8c6101aa8aa0a9da577c556fbfd03258ecd1c8c89768c70ce4b7 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
cebaa50c09690f8569485d00 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.processProperties | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L114-L133 | train | java | Get the filters ImporterServiceFilter and ImportDeclarationFilter from the properties, stop the instance if one of.
them is invalid. | private void processProperties() {
state = true;
try {
importerServiceFilter = getFilter(importerServiceFilterProperty);
} catch (InvalidFilterException invalidFilterException) {
LOG.debug("The value of the Property " + FILTER_IMPORTERSERVICE_PROPERTY + " is invalid,"
... | Get the filters ImporterServiceFilter and ImportDeclarationFilter from the properties, stop the instance if one of.
them is invalid.
private void processProperties() {
state = true;
try {
importerServiceFilter = getFilter(importerServiceFilterProperty);
} catch (InvalidFilterExcepti... | 198 | 132 | 941 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0b4ec173ed13f38f35b4e7d0f9601626617d58e544c541ece265a3219a441c43 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4900b69f1836095feed27950 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.updated | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L141-L148 | train | java | Called by iPOJO when the configuration of the DefaultImportationLinker is updated.
<p/>
Call #processProperties() to get the updated filters ImporterServiceFilter and ImportDeclarationFilter.
Compute and apply the changes in the links relatives to the changes in the filters. | @Updated
public void updated() {
processProperties();
synchronized (lock) {
importersManager.applyFilterChanges(importerServiceFilter);
declarationsManager.applyFilterChanges(importDeclarationFilter);
}
} | Called by iPOJO when the configuration of the DefaultImportationLinker is updated.
<p/>
Call #processProperties() to get the updated filters ImporterServiceFilter and ImportDeclarationFilter.
Compute and apply the changes in the links relatives to the changes in the filters.
@Updated
public void updated() {
... | 100 | 275 | 260 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 236e2874b48be07713be52e2496050d77330d6f70e86026026670cc1968f69d5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
4da15e53f56e565eac86f0e5 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.bindImporterService | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L156-L177 | train | java | Bind the {@link ImporterService} matching the importerServiceFilter.
<p/>
Check all the already bound {@link ImportDeclaration}s, if the metadata of the ImportDeclaration match the filter
exposed by the ImporterService, link them together. | @Bind(id = "importerServices", specification = ImporterService.class, aggregate = true, optional = true)
void bindImporterService(ServiceReference<ImporterService> serviceReference) {
synchronized (lock) {
try {
importersManager.add(serviceReference);
} catch (Invalid... | Bind the {@link ImporterService} matching the importerServiceFilter.
<p/>
Check all the already bound {@link ImportDeclaration}s, if the metadata of the ImportDeclaration match the filter
exposed by the ImporterService, link them together.
@Bind(id = "importerServices", specification = ImporterService.class, aggregate... | 260 | 239 | 1,230 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 30b695ace2cbcce3cd9c85c1398c4e35a908987312e5233554fa777a944f6d49 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
80d2448b43841a897476844d | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.modifiedImporterService | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L185-L203 | train | java | Update the Target Filter of the ImporterService.
Apply the induce modifications on the links of the ImporterService
@param serviceReference | @Modified(id = "importerServices")
void modifiedImporterService(ServiceReference<ImporterService> serviceReference) {
try {
importersManager.modified(serviceReference);
} catch (InvalidFilterException invalidFilterException) {
LOG.error("The ServiceProperty \"" + TARGET_FILTE... | Update the Target Filter of the ImporterService.
Apply the induce modifications on the links of the ImporterService
@param serviceReference
@Modified(id = "importerServices")
void modifiedImporterService(ServiceReference<ImporterService> serviceReference) {
try {
importersManager.modified(serv... | 192 | 140 | 956 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 97eae90e005e8a45a61419551ecb12cf4cacec3ed3ddb29a376250cafa44ebbf | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
d1bc557eb5053a41cf1537d9 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.unbindImporterService | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L208-L216 | train | java | Unbind the {@link ImporterService}. | @Unbind(id = "importerServices")
void unbindImporterService(ServiceReference<ImporterService> serviceReference) {
LOG.debug(linkerName + " : Unbind the ImporterService " + importersManager.getDeclarationBinder(serviceReference));
synchronized (lock) {
importersManager.removeLinks(servic... | Unbind the {@link ImporterService}.
@Unbind(id = "importerServices")
void unbindImporterService(ServiceReference<ImporterService> serviceReference) {
LOG.debug(linkerName + " : Unbind the ImporterService " + importersManager.getDeclarationBinder(serviceReference));
synchronized (lock) {
... | 89 | 35 | 403 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 347e9c794b267ffd96a541a03d1736bc3a65b7fcf8471605e737452f28c283eb | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
31781f93261e74eaae2c04b5 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.bindImportDeclaration | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L224-L242 | train | java | Bind the {@link ImportDeclaration} matching the filter ImportDeclarationFilter.
<p/>
Check if metadata of the ImportDeclaration match the filter exposed by the {@link ImporterService}s bound.
If the ImportDeclaration matches the ImporterService filter, link them together. | @Bind(id = "importDeclarations", specification = ImportDeclaration.class, aggregate = true, optional = true)
void bindImportDeclaration(ServiceReference<ImportDeclaration> importDeclarationSRef) {
synchronized (lock) {
declarationsManager.add(importDeclarationSRef);
if (!declaratio... | Bind the {@link ImportDeclaration} matching the filter ImportDeclarationFilter.
<p/>
Check if metadata of the ImportDeclaration match the filter exposed by the {@link ImporterService}s bound.
If the ImportDeclaration matches the ImporterService filter, link them together.
@Bind(id = "importDeclarations", specification... | 179 | 272 | 728 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3af5f3be473174b6f9d0f7011992462c33bb2f024d0e7e11309fc58b021b11d5 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
09b86027a4e2d504189b1654 | ow2-chameleon/fuchsia | core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java | DefaultImportationLinker.modifiedImportDeclaration | https://github.com/ow2-chameleon/fuchsia/blob/4e9318eadbdeb945e529789f573b45386e619bed/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/DefaultImportationLinker.java#L248-L261 | train | java | Unbind and bind the {@link ImportDeclaration}. | @Modified(id = "importDeclarations")
void modifiedImportDeclaration(ServiceReference<ImportDeclaration> importDeclarationSRef) {
LOG.debug(linkerName + " : Modify the ImportDeclaration "
+ declarationsManager.getDeclaration(importDeclarationSRef));
synchronized (lock) {
... | Unbind and bind the {@link ImportDeclaration}.
@Modified(id = "importDeclarations")
void modifiedImportDeclaration(ServiceReference<ImportDeclaration> importDeclarationSRef) {
LOG.debug(linkerName + " : Modify the ImportDeclaration "
+ declarationsManager.getDeclaration(importDeclarationSRe... | 120 | 46 | 633 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b1c8e3dda3fe80fc89fc33aa885b788698172e2213d85999558b6e636d04ac57 | Apache-2.0 | permissive | https://github.com/ow2-chameleon/fuchsia/blob/master/LICENSE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.