net-spider-rpl-0.4.1.5: NetSpider data model and utility for RPL networks
MaintainerToshio Ito <debug.ito@gmail.com>
Safe HaskellNone
LanguageHaskell2010

NetSpider.RPL.Combined

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.

Instances

Instances details
Eq CombinedNode Source # 
Instance details

Defined in NetSpider.RPL.Combined

Ord CombinedNode Source # 
Instance details

Defined in NetSpider.RPL.Combined

Show CombinedNode Source # 
Instance details

Defined in NetSpider.RPL.Combined

Generic CombinedNode Source # 
Instance details

Defined in NetSpider.RPL.Combined

Associated Types

type Rep CombinedNode :: Type -> Type #

Semigroup CombinedNode Source #

Based on instance of First.

Instance details

Defined in NetSpider.RPL.Combined

Monoid CombinedNode Source #

Based on instance of First.

Instance details

Defined in NetSpider.RPL.Combined

ToJSON CombinedNode Source #

Since: 0.4.1.0

Instance details

Defined in NetSpider.RPL.Combined

FromJSON CombinedNode Source #

Since: 0.4.1.0

Instance details

Defined in NetSpider.RPL.Combined

ToAttributes CombinedNode Source # 
Instance details

Defined in NetSpider.RPL.Combined

type Rep CombinedNode Source # 
Instance details

Defined in NetSpider.RPL.Combined

type Rep CombinedNode = D1 ('MetaData "CombinedNode" "NetSpider.RPL.Combined" "net-spider-rpl-0.4.1.5-B5a2IBJNeg2FPRyWz1obDc" 'False) (C1 ('MetaCons "CombinedNode" 'PrefixI 'True) (S1 ('MetaSel ('Just "attrsDIO") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DIONode)) :*: S1 ('MetaSel ('Just "attrsDAO") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DAONode))))

data CombinedLink Source #

Link attribute combining MergedDIOLink and DAOLink.

Instances