public void setTransferCapabilities(Collection<TransferCapability> transferCapabilities) { scpTCs.clear(); scuTCs.clear(); for (TransferCapability tc : transferCapabilities) { tc.setApplicationEntity(this); switch (tc.getRole()) { case SCP: scpTCs.put(tc.getSopClass(), tc); break; case SCU: scuTCs.put(tc.getSopClass(), tc); } } }
private void reconfigureTransferCapabilities(ApplicationEntity src) { scuTCs.clear(); scuTCs.putAll(src.scuTCs); scpTCs.clear(); scpTCs.putAll(src.scpTCs); }