net-spider-rpl-0.3.0.0: NetSpider data model and utility for RPL networks

MaintainerToshio Ito <debug.ito@gmail.com>
Safe HaskellNone
LanguageHaskell2010

NetSpider.RPL.Combined

Contents

Description

This module defines functions and data models that combine DIO (defined in NetSpider.RPL.DIO) and DAO (defined in NetSpider.RPL.DAO) graphs.

Synopsis

Functions

combineGraphs :: SnapshotGraphDIO -> SnapshotGraphDAO -> SnapshotGraphCombined Source #

Combine DIO and DAO graphs into the combined graph, using combineNodes and combineLinks.

combineNodes :: [SnapshotNode FindingID DIONode] -> [SnapshotNode FindingID DAONode] -> [SnapshotNode IPv6ID CombinedNode] Source #

Combine DIO and DAO SnapshotNodes. Attributes from DIONode and DAONode for the same IPv6ID are combined into one CombinedNode. Timestamp of a combined SnapshotNode is the latest timestamp of input nodes for that IPv6ID.

combineLinks :: [SnapshotLink FindingID MergedDIOLink] -> [SnapshotLink FindingID DAOLink] -> [SnapshotLink IPv6ID CombinedLink] Source #

Convert DIO and DAO links into combined links. Despite its name, this function does not combine input links. It just make one combined link from each of the input links.

Types

data CombinedNode Source #

Node attributes combining DIONode and DAONode.