Skip to content

Commit

Permalink
Remove establishVerticalRelation (swap by establishVerticalRelations)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryukzak committed Apr 7, 2021
1 parent 3c2e7be commit c679170
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/NITTA/Model/Networks/Bus.hs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ instance (UnitTag tag, VarValTime v x t) => ProcessorUnit (BusNetwork tag v x t)
mapM_
( \(epKey, v) ->
when (v `M.member` v2transportStepKey) $
establishVerticalRelation (v2transportStepKey M.! v) epKey
establishVerticalRelations [v2transportStepKey M.! v] [epKey]
)
enpointStepKeyVars

Expand All @@ -210,7 +210,7 @@ instance (UnitTag tag, VarValTime v x t) => ProcessorUnit (BusNetwork tag v x t)
mapM_
( \v ->
when (v `M.member` v2transportStepKey) $
establishVerticalRelation pID (v2transportStepKey M.! v)
establishVerticalRelations [pID] [v2transportStepKey M.! v]
)
$ variables f
)
Expand All @@ -229,7 +229,7 @@ instance (UnitTag tag, VarValTime v x t) => ProcessorUnit (BusNetwork tag v x t)
steps
mapM_
( \case
(Vertical h l) -> establishVerticalRelation (pu2netKey M.! h) (pu2netKey M.! l)
(Vertical h l) -> establishVerticalRelations [pu2netKey M.! h] [pu2netKey M.! l]
(Horizontal h l) -> establishHorizontalRelations [pu2netKey M.! h] [pu2netKey M.! l]
)
relations
Expand Down
12 changes: 0 additions & 12 deletions src/NITTA/Utils/ProcessDescription.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ module NITTA.Utils.ProcessDescription (
scheduleInstruction,
scheduleNestedStep,
establishVerticalRelations,
establishVerticalRelation,
establishHorizontalRelations,
getProcessSlice,
relatedEndpoints,
Expand Down Expand Up @@ -115,17 +114,6 @@ establishVerticalRelations high low = do
}
}

-- |Add to the process description information about vertical relation.
establishVerticalRelation h l = do
sch@Schedule{schProcess = p@Process{relations}} <- get
put
sch
{ schProcess =
p
{ relations = Vertical h l : relations
}
}

{- |Add to the process description information about horizontal relations (inside
level), which are defined by the Cartesian product of high and low lists.
-}
Expand Down

0 comments on commit c679170

Please sign in to comment.