Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
codes
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 38
    • Issues 38
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 8
    • Merge Requests 8
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • codes
  • codes
  • Issues
  • #12

Closed
Open
Opened Jan 14, 2016 by Jonathan Jenkins@jenkins
  • Report abuse
  • New issue
Report abuse New issue

generic LP mapping mechanism

We need a way for a top level model (a driver) to construct a mapping of how various types of LPs are connected in the system so that model components can look up mappings more generically.

One way to do this would be with a function that would map triplets of "origin LP id, destination LP type, and destination LP instance" to an LP id. For example, you could find the 3rd disk drive connected to a particular LP with lookup(id, DISK, 3).

This could be implemented with a lookup table or a mathematical equation.

Ideally this mapping would be configured by the top level model, which would then provide a function pointer to all of the components so that the individual components are not aware of how the mapping works.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
2
Labels
CODES task
Assign labels
  • View project labels
Reference: codes/codes#12