-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle changes of Identity properties
Change-Id: I750bab99531289fcb9e8c194ef981adf3611654d
- Loading branch information
Showing
13 changed files
with
92 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Artery V2X Simulation Framework | ||
* Copyright 2019 Raphael Riebl | ||
* Licensed under GPLv2, see COPYING file for detailed license and warranty terms. | ||
*/ | ||
|
||
#include "artery/utility/Identity.h" | ||
#include <omnetpp/regmacros.h> | ||
|
||
namespace artery | ||
{ | ||
|
||
// Identity has no source file yet | ||
Register_Class(Identity) | ||
|
||
using namespace omnetpp; | ||
|
||
const simsignal_t Identity::changeSignal = cComponent::registerSignal("IdentityChanged"); | ||
|
||
bool Identity::update(const Identity& update, long changes) | ||
{ | ||
bool changed = false; | ||
|
||
if (changes & ChangeTraCI) { | ||
traci = update.traci; | ||
changed = true; | ||
} | ||
|
||
if (changes & ChangeStationId) { | ||
application = update.application; | ||
changed = true; | ||
} | ||
|
||
if (changes & ChangeGeoNetAddress) { | ||
geonet = update.geonet; | ||
changed = true; | ||
} | ||
|
||
return changed; | ||
} | ||
|
||
} // namespace artery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters