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.DIO

Contents

Description

 
Synopsis

Types

type FoundNodeDIO = FoundNode FindingID DIONode DIOLink Source #

FoundNode for a network described by DIOs.

type SnapshotGraphDIO = SnapshotGraph FindingID DIONode MergedDIOLink Source #

SnapshotGraph for a network described by DIOs. This is what you get by dioDefQuery.

data DIONode Source #

Node attributes about DIO.

Constructors

DIONode 

Fields

Instances

Instances details
Eq DIONode Source # 
Instance details

Defined in NetSpider.RPL.DIO

Methods

(==) :: DIONode -> DIONode -> Bool #

(/=) :: DIONode -> DIONode -> Bool #

Ord DIONode Source # 
Instance details

Defined in NetSpider.RPL.DIO

Show DIONode Source # 
Instance details

Defined in NetSpider.RPL.DIO

Generic DIONode Source # 
Instance details

Defined in NetSpider.RPL.DIO

Associated Types

type Rep DIONode :: Type -> Type #

Methods

from :: DIONode -> Rep DIONode x #

to :: Rep DIONode x -> DIONode #

ToJSON DIONode Source #

Since: 0.4.1.0

Instance details

Defined in NetSpider.RPL.DIO

FromJSON DIONode Source #

Since: 0.4.1.0

Instance details

Defined in NetSpider.RPL.DIO

NodeAttributes DIONode Source # 
Instance details

Defined in NetSpider.RPL.DIO

ToAttributes DIONode Source # 
Instance details

Defined in NetSpider.RPL.DIO

type Rep DIONode Source # 
Instance details

Defined in NetSpider.RPL.DIO

type Rep DIONode = D1 ('MetaData "DIONode" "NetSpider.RPL.DIO" "net-spider-rpl-0.4.1.5-B5a2IBJNeg2FPRyWz1obDc" 'False) (C1 ('MetaCons "DIONode" 'PrefixI 'True) (S1 ('MetaSel ('Just "rank") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Rank) :*: S1 ('MetaSel ('Just "dioInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TrickleInterval)))

data DIOLink Source #

Link attributes about DIO.

Basically this represents information of a neighbor learned from the DIOs it has sent.

Constructors

DIOLink 

Fields

  • neighborType :: NeighborType

    Type of the neighbor at the other end of this link.

  • neighborRank :: Rank

    Observed rank of the neighbor.

  • metric :: Maybe Rank

    Link metric of this link, calculated as step of Rank. Because Rank computation is up to the Objective Function, this field is optional.

Instances

dioLinkState :: DIOLink -> LinkState Source #

LinkState that should be set for given DIOLink.

data MergedDIOLink Source #

Link attributes merging two DIOLinks from the two end nodes of the link.

Instances

type Rank = Word Source #

RPL rank

type TrickleInterval = Word Source #

The interval of Trickle timer as decribed as number of doublings of the minimum interval, i.e. log2(I / Imin).

Since: 0.2.1.0

data NeighborType Source #

Classification of RPL neighbors.

Constructors

PreferredParent

The neighbor is the preferred parent.

ParentCandidate

The neighbor is not the preferred parent, but is in the parent set.

OtherNeighbor

The neighbor is not in the parent set.

Instances

Instances details
Bounded NeighborType Source # 
Instance details

Defined in NetSpider.RPL.DIO

Enum NeighborType Source # 
Instance details

Defined in NetSpider.RPL.DIO

Eq NeighborType Source # 
Instance details

Defined in NetSpider.RPL.DIO

Ord NeighborType Source # 
Instance details

Defined in NetSpider.RPL.DIO

Show NeighborType Source # 
Instance details

Defined in NetSpider.RPL.DIO

Generic NeighborType Source # 
Instance details

Defined in NetSpider.RPL.DIO

Associated Types

type Rep NeighborType :: Type -> Type #

ToJSON NeighborType Source #

Encode to a JSON string.

Since: 0.4.0.0

Instance details

Defined in NetSpider.RPL.DIO

FromJSON NeighborType Source #

Decode from a JSON string.

Since: 0.4.1.0

Instance details

Defined in NetSpider.RPL.DIO

FromGraphSON NeighborType Source #

Since: 0.4.0.0

Instance details

Defined in NetSpider.RPL.DIO

LinkAttributes NeighborType Source # 
Instance details

Defined in NetSpider.RPL.DIO

type Rep NeighborType Source # 
Instance details

Defined in NetSpider.RPL.DIO

type Rep NeighborType = D1 ('MetaData "NeighborType" "NetSpider.RPL.DIO" "net-spider-rpl-0.4.1.5-B5a2IBJNeg2FPRyWz1obDc" 'False) (C1 ('MetaCons "PreferredParent" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ParentCandidate" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OtherNeighbor" 'PrefixI 'False) (U1 :: Type -> Type)))

Query