IoT Perspective Tradeoff Tool
Try Change Security Priority (%) from 25 to 50.
Observe Watch Total Weight and Weighted Score → as Security Priority (%) changes from 25 to 50.
Explain Explain why weights should sum to 100% when comparing weighted scores.
Calculate
Reset
Technical boundaries. The three design options use fixed scores from 0 to 10. Weights are divided by 100; a warning appears when their total differs from 100%.
Use this calculator to explore how different stakeholder priorities affect design decisions. Adjust the weights to see how total scores change.
colors = ({
navy : "#2C3E50" ,
teal : "#16A085" ,
orange : "#E67E22" ,
blue : "#3498DB" ,
gray : "#7F8C8D" ,
purple : "#9B59B6" ,
red : "#E74C3C"
})
// Perspective weights (sum to 100)
viewof securityWeight = Inputs. range ([0 , 100 ], {
value : 25 ,
step : 5 ,
label : "Security Priority (%)" ,
width : 300
})
viewof hardwareWeight = Inputs. range ([0 , 100 ], {
value : 20 ,
step : 5 ,
label : "Hardware/Battery Priority (%)" ,
width : 300
})
viewof dataWeight = Inputs. range ([0 , 100 ], {
value : 15 ,
step : 5 ,
label : "Data Analytics Priority (%)" ,
width : 300
})
viewof uxWeight = Inputs. range ([0 , 100 ], {
value : 25 ,
step : 5 ,
label : "User Experience Priority (%)" ,
width : 300
})
viewof architectureWeight = Inputs. range ([0 , 100 ], {
value : 15 ,
step : 5 ,
label : "Architecture Priority (%)" ,
width : 300
})
// Calculate total weight
totalWeight = securityWeight + hardwareWeight + dataWeight + uxWeight + architectureWeight
// Display warning if weights don't sum to 100
html `<div style="margin: 10px 0; padding: 10px; background: ${ totalWeight === 100 ? colors. teal : colors. orange } ; color: white; border-radius: 4px;">
<strong>Total Weight: ${ totalWeight} %</strong> ${ totalWeight === 100 ? '✓ Balanced' : 'Should sum to 100%' }
</div>`
designOptions = [
{
name : "Option A: Heavy Encryption + Cloud Processing" ,
security : 9 ,
hardware : 4 ,
data : 8 ,
ux : 6 ,
architecture : 7 ,
description : "AES-256-GCM authenticated encryption, all processing in cloud, 2-day battery life"
},
{
name : "Option B: Lightweight Crypto + Edge Processing" ,
security : 7 ,
hardware : 8 ,
data : 7 ,
ux : 8 ,
architecture : 8 ,
description : "ChaCha20-Poly1305 authenticated encryption, local processing, 7-day battery life"
},
{
name : "Option C: Minimal Security + Ultra-Long Battery" ,
security : 4 ,
hardware : 10 ,
data : 5 ,
ux : 7 ,
architecture : 6 ,
description : "Basic encryption, event-driven sampling, 30-day battery life"
}
]
// Calculate weighted scores
scoredOptions = designOptions. map (opt => ({
... opt,
weightedScore : (
(opt. security * securityWeight / 100 ) +
(opt. hardware * hardwareWeight / 100 ) +
(opt. data * dataWeight / 100 ) +
(opt. ux * uxWeight / 100 ) +
(opt. architecture * architectureWeight / 100 )
). toFixed (2 )
}))
// Sort by weighted score
sortedOptions = scoredOptions. sort ((a, b) => b. weightedScore - a. weightedScore )
// Visualization
Plot. plot ({
marginLeft : 250 ,
marginRight : 50 ,
height : 200 ,
x : {
domain : [0 , 10 ],
label : "Weighted Score →"
},
y : {
label : null
},
marks : [
Plot. barX (sortedOptions, {
y : "name" ,
x : "weightedScore" ,
fill : (d, i) => i === 0 ? colors. teal : (i === 1 ? colors. orange : colors. gray ),
tip : true
}),
Plot. text (sortedOptions, {
y : "name" ,
x : "weightedScore" ,
text : d => d. weightedScore ,
dx : 20 ,
fill : colors. navy
})
]
})
html `<div style="display: grid; gap: 12px; margin-top: 16px;">
${ sortedOptions. map ((opt, idx) => html `<div style="border: 1px solid #DDE6ED; border-left: 5px solid ${ idx === 0 ? colors. teal : idx === 1 ? colors. orange : colors. gray } ; border-radius: 8px; padding: 12px; background: #fff;">
<div style="display: flex; justify-content: space-between; gap: 12px; align-items: start; flex-wrap: wrap;">
<strong>Rank ${ idx + 1 } : ${ opt. name } </strong>
<strong style="color: ${ idx === 0 ? colors. teal : idx === 1 ? colors. orange : colors. gray } ;">Score ${ opt. weightedScore } </strong>
</div>
<div style="margin-top: 6px; color: ${ colors. gray } ;">S ${ opt. security } / H ${ opt. hardware } / D ${ opt. data } / UX ${ opt. ux } / A ${ opt. architecture } </div>
<div style="margin-top: 6px;"> ${ opt. description } </div>
</div>` )}
</div>`
md `**Insight**: The "best" design option changes based on your priority weights. Medical devices prioritize Security (25-30%), while consumer wearables prioritize UX and Battery (40-50% combined). Adjust the sliders above to see how different stakeholder priorities affect design selection.`
Back to the chapter