public class IMCSendMessageUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.ArrayList<pt.lsts.imc.TransmissionRequest> |
burstMessageAcoustically(pt.lsts.imc.IMCMessage msg,
java.lang.String destination)
Send message to a system using ALL available acoustic gateways
|
static boolean |
doesSystemWithAcousticCanReachSystem(ImcSystem acOpSystem,
java.lang.String system)
Test if a system with acoustic/operation service can reach a system by acoustics
|
static int |
getCurrentRequestId() |
static int |
getNextRequestId() |
static boolean |
sendMessage(pt.lsts.imc.IMCMessage msg,
java.awt.Component parent,
java.lang.String errorTextForDialog,
boolean ignoreAcousticSending,
boolean acousticOpUserAprovedQuestion,
boolean sendOnlyThroughOneAcoustically,
java.lang.String... ids) |
static boolean |
sendMessage(pt.lsts.imc.IMCMessage msg,
java.awt.Component parent,
java.lang.String errorTextForDialog,
boolean ignoreAcousticSending,
java.lang.String acousticOpServiceName,
boolean acousticOpUseOnlyActive,
boolean acousticOpUserAprovedQuestion,
boolean sendOnlyThroughOneAcoustically,
java.lang.String... ids) |
static boolean |
sendMessage(pt.lsts.imc.IMCMessage msg,
java.lang.String errorTextForDialog,
boolean ignoreAcousticSending,
boolean sendOnlyThroughOneAcoustically,
java.lang.String... ids) |
static boolean |
sendMessage(pt.lsts.imc.IMCMessage msg,
java.lang.String errorTextForDialog,
boolean sendOnlyThroughOneAcoustically,
java.lang.String... ids) |
static boolean |
sendMessage(pt.lsts.imc.IMCMessage msg,
java.lang.String sendProperties,
MessageDeliveryListener listener,
java.awt.Component parent,
java.lang.String errorTextForDialog,
boolean ignoreAcousticSending,
java.lang.String acousticOpServiceName,
boolean acousticOpUseOnlyActive,
boolean acousticOpUserAprovedQuestion,
boolean sendOnlyThroughOneAcoustically,
java.lang.String... ids) |
static java.util.ArrayList<pt.lsts.imc.TransmissionRequest> |
sendMessageAcoustically(pt.lsts.imc.IMCMessage msg,
java.lang.String destination)
Send message to a system using any available acoustic gateway
|
static java.util.ArrayList<pt.lsts.imc.TransmissionRequest> |
sendMessageAcoustically(pt.lsts.imc.IMCMessage msg,
java.lang.String destination,
ImcSystem preferredGateway,
boolean burst,
int timeoutSecs) |
static boolean |
sendMessageByAcousticModem(pt.lsts.imc.IMCMessage msg,
java.lang.String system,
boolean sendOnlyThroughOne,
ImcSystem[] acousticOpSysLst)
Deprecated.
use
sendMessageAcoustically(IMCMessage, String) instead |
public static int getNextRequestId()
public static int getCurrentRequestId()
public static boolean sendMessage(pt.lsts.imc.IMCMessage msg, java.lang.String errorTextForDialog, boolean sendOnlyThroughOneAcoustically, java.lang.String... ids)
public static boolean sendMessage(pt.lsts.imc.IMCMessage msg, java.lang.String errorTextForDialog, boolean ignoreAcousticSending, boolean sendOnlyThroughOneAcoustically, java.lang.String... ids)
public static boolean sendMessage(pt.lsts.imc.IMCMessage msg, java.awt.Component parent, java.lang.String errorTextForDialog, boolean ignoreAcousticSending, boolean acousticOpUserAprovedQuestion, boolean sendOnlyThroughOneAcoustically, java.lang.String... ids)
public static boolean sendMessage(pt.lsts.imc.IMCMessage msg, java.awt.Component parent, java.lang.String errorTextForDialog, boolean ignoreAcousticSending, java.lang.String acousticOpServiceName, boolean acousticOpUseOnlyActive, boolean acousticOpUserAprovedQuestion, boolean sendOnlyThroughOneAcoustically, java.lang.String... ids)
public static boolean sendMessage(pt.lsts.imc.IMCMessage msg, java.lang.String sendProperties, MessageDeliveryListener listener, java.awt.Component parent, java.lang.String errorTextForDialog, boolean ignoreAcousticSending, java.lang.String acousticOpServiceName, boolean acousticOpUseOnlyActive, boolean acousticOpUserAprovedQuestion, boolean sendOnlyThroughOneAcoustically, java.lang.String... ids)
msg
- sendProperties
- The same of ImcMsgManager.sendMessage(IMCMessage, pt.lsts.neptus.comm.manager.imc.ImcId16, String, pt.lsts.neptus.comm.manager.imc.MessageDeliveryListener)
,
use null if don't care.parent
- The parent component for popup error messageerrorTextForDialog
- ignoreAcousticSending
- If this is true mean don't use acoustic.acousticOpServiceName
- acousticOpUseOnlyActive
- acousticOpUserAprovedQuestion
- ids
- public static java.util.ArrayList<pt.lsts.imc.TransmissionRequest> sendMessageAcoustically(pt.lsts.imc.IMCMessage msg, java.lang.String destination) throws java.lang.Exception
msg
- The message to senddestination
- The destination to reach (possibly "broadcast")java.lang.Exception
- In case the message could not be deliveredburstMessageAcoustically(IMCMessage, String)
public static java.util.ArrayList<pt.lsts.imc.TransmissionRequest> burstMessageAcoustically(pt.lsts.imc.IMCMessage msg, java.lang.String destination) throws java.lang.Exception
msg
- The message to senddestination
- The destination to reach (possibly "broadcast")java.lang.Exception
- In case the message could not be deliveredsendMessageAcoustically(IMCMessage, String)
public static java.util.ArrayList<pt.lsts.imc.TransmissionRequest> sendMessageAcoustically(pt.lsts.imc.IMCMessage msg, java.lang.String destination, ImcSystem preferredGateway, boolean burst, int timeoutSecs) throws java.lang.Exception
java.lang.Exception
public static boolean sendMessageByAcousticModem(pt.lsts.imc.IMCMessage msg, java.lang.String system, boolean sendOnlyThroughOne, ImcSystem[] acousticOpSysLst)
sendMessageAcoustically(IMCMessage, String)
insteadmsg
- system
- acousticOpSysLst
- public static boolean doesSystemWithAcousticCanReachSystem(ImcSystem acOpSystem, java.lang.String system)
acOpSystem
- system
- Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.