| Maintainer | Toshio Ito <debug.ito@gmail.com> |
|---|---|
| Safe Haskell | None |
| Language | Haskell2010 |
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
- combineGraphs :: SnapshotGraphDIO -> SnapshotGraphDAO -> SnapshotGraphCombined
- combineNodes :: [SnapshotNode FindingID DIONode] -> [SnapshotNode FindingID DAONode] -> [SnapshotNode IPv6ID CombinedNode]
- combineLinks :: [SnapshotLink FindingID MergedDIOLink] -> [SnapshotLink FindingID DAOLink] -> [SnapshotLink IPv6ID CombinedLink]
- type SnapshotGraphCombined = SnapshotGraph IPv6ID CombinedNode CombinedLink
- data CombinedNode = CombinedNode {}
- data CombinedLink
- combinedLinkType :: CombinedLink -> FindingType
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
type SnapshotGraphCombined = SnapshotGraph IPv6ID CombinedNode CombinedLink Source #
SnapshotGraph combining DIO and DAO networks.
data CombinedNode Source #
Instances
data CombinedLink Source #
Link attribute combining MergedDIOLink and DAOLink.
Constructors
| CombinedDIOLink MergedDIOLink | |
| CombinedDAOLink DAOLink |