Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
API
Commits
7c740499
Commit
7c740499
authored
Jan 11, 2019
by
Julian Zobel
Browse files
Added a connection information container for ndoes with multiple comm devices
parent
b72a33c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/de/tudarmstadt/maki/simonstrator/api/uavsupport/communication/CommunicationInterface.java
View file @
7c740499
...
...
@@ -41,4 +41,6 @@ public interface CommunicationInterface {
public
OverlayContact
getOverlayContact
(
NetInterfaceName
network
);
public
ConnectionInformation
getConnectionInformation
();
}
src/de/tudarmstadt/maki/simonstrator/api/uavsupport/communication/ConnectionInformation.java
0 → 100644
View file @
7c740499
/*
* Copyright (c) 2005-2010 KOM – Multimedia Communications Lab
*
* This file is part of Simonstrator.KOM.
*
* Simonstrator.KOM is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* PeerfactSim.KOM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PeerfactSim.KOM. If not, see <http://www.gnu.org/licenses/>.
*
*/
package
de.tudarmstadt.maki.simonstrator.api.uavsupport.communication
;
import
de.tudarmstadt.maki.simonstrator.api.common.graph.INodeID
;
import
de.tudarmstadt.maki.simonstrator.api.component.network.NetworkComponent.NetInterfaceName
;
import
de.tudarmstadt.maki.simonstrator.api.component.overlay.OverlayContact
;
/**
* Container for nodes with multiple network interfaces containing the
* respective {@link OverlayContact}s.
*
* @author Julian Zobel
*
*/
public
interface
ConnectionInformation
{
public
void
addConnectionInformation
(
NetInterfaceName
networkInterface
,
OverlayContact
contact
);
public
boolean
hasConnectionInformation
(
NetInterfaceName
networkInterface
);
public
boolean
hasConnectionInformation
(
OverlayContact
contact
);
public
OverlayContact
getConnectionInformation
(
NetInterfaceName
networkInterface
);
public
INodeID
getID
();
}
src/de/tudarmstadt/maki/simonstrator/api/uavsupport/communication/UAVToBaseInterface.java
View file @
7c740499
package
de.tudarmstadt.maki.simonstrator.api.uavsupport.communication
;
import
de.tudarmstadt.maki.simonstrator.api.component.overlay.OverlayContact
;
import
de.tudarmstadt.maki.simonstrator.api.uavsupport.strategy.UAVStrategy
;
public
interface
UAVToBaseInterface
{
...
...
@@ -11,5 +10,5 @@ public interface UAVToBaseInterface {
public
void
startStrategy
();
public
OverlayContact
getOverlayContact
();
public
ConnectionInformation
getConnectionInformation
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment