private int eventTypeId(Attributes eventInfo) {
return eventInfo.containsValue(Tag.FailedSOPSequence) ? 2 : 1;
}
private AAssociateRQ makeAAssociateRQ() {
AAssociateRQ aarq = new AAssociateRQ();
aarq.setCallingAET(as.getLocalAET());
aarq.setCalledAET(as.getRemoteAET());
ApplicationEntity ae = as.getApplicationEntity();
TransferCapability tc = ae.getTransferCapabilityFor(
UID.StorageCommitmentPushModelSOPClass, TransferCapability.Role.SCP);
aarq.addPresentationContext(
new PresentationContext(
1,
UID.StorageCommitmentPushModelSOPClass,
tc.getTransferSyntaxes()));
aarq.addRoleSelection(
new RoleSelection(UID.StorageCommitmentPushModelSOPClass, false, true));
return aarq;
}