public class FakeMemoryConfigurationService extends MemoryConfigurationService
Modifier and Type | Class and Description |
---|---|
(package private) class |
FakeMemoryConfigurationService.SpaceData |
(package private) class |
FakeMemoryConfigurationService.SpaceKey |
MemoryConfigurationService.AddrSpaceDatagramMemo, MemoryConfigurationService.ConfigDatagramMemo, MemoryConfigurationService.McsAddrSpaceMemo, MemoryConfigurationService.McsConfigMemo, MemoryConfigurationService.McsReadHandler, MemoryConfigurationService.McsReadMemo, MemoryConfigurationService.McsWriteHandler, MemoryConfigurationService.McsWriteMemo, MemoryConfigurationService.McsWriteStreamMemo, MemoryConfigurationService.WriteStreamMemo
Modifier and Type | Field and Description |
---|---|
private Map<FakeMemoryConfigurationService.SpaceKey,FakeMemoryConfigurationService.SpaceData> |
knownSpaces |
addrSpaceMemo, configMemo, downstream, here, pendingRequests, queuedRequests, SPACE_ACDI_CONST, SPACE_ACDI_USER, SPACE_ALL_MEM, SPACE_CDI, SPACE_CONFIG, SPACE_TRACTION_FDI, SPACE_TRACTION_FUNCTION, writeStreamMemo
Constructor and Description |
---|
FakeMemoryConfigurationService(OlcbInterface iface) |
Modifier and Type | Method and Description |
---|---|
void |
addSpace(NodeID remoteNode,
int space,
byte[] payload,
boolean writeEnabled) |
private FakeMemoryConfigurationService.SpaceData |
findSpace(NodeID dest,
int space) |
void |
requestRead(NodeID dest,
int space,
long address,
int len,
MemoryConfigurationService.McsReadHandler cb) |
void |
requestWrite(NodeID dest,
int space,
long address,
byte[] data,
MemoryConfigurationService.McsWriteHandler cb) |
dispose, getRequestTypeFromResponseType, getSpaceFromPayload, request, request, request, request, setTimeoutMillis, waitForTimer
private Map<FakeMemoryConfigurationService.SpaceKey,FakeMemoryConfigurationService.SpaceData> knownSpaces
public FakeMemoryConfigurationService(OlcbInterface iface)
public void addSpace(NodeID remoteNode, int space, byte[] payload, boolean writeEnabled)
private FakeMemoryConfigurationService.SpaceData findSpace(NodeID dest, int space)
public void requestWrite(NodeID dest, int space, long address, byte[] data, MemoryConfigurationService.McsWriteHandler cb)
requestWrite
in class MemoryConfigurationService
public void requestRead(NodeID dest, int space, long address, int len, MemoryConfigurationService.McsReadHandler cb)
requestRead
in class MemoryConfigurationService
Copyright © 2018 The OpenLCB Group. All rights reserved.