Package dk.vajhoej.model.core
Class ModelFilter
- java.lang.Object
-
- dk.vajhoej.model.core.ModelFilter
-
public class ModelFilter extends java.lang.Object
Class ModelFilter translates a model to certain readonly models.
-
-
Constructor Summary
Constructors Constructor Description ModelFilter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<Location>
addLocations(java.util.List<Location> allloc, Model m, int w, int y0)
Add locations for VM's.static java.util.List<Location>
filterLocations(java.util.List<Location> allloc, Model m)
Filter non existing locations.static Model
flattenComponents(Model arg)
Flatten component model so all components are at the outer/box level.static Model
hideConnections(Model arg)
Hide connections.static Model
hideHardware(Model arg)
Hide hardware (CPU, memory and disk) information.static Model
ignoreVMs(Model arg)
Ignore VM's and treat VM's like physical boxes.static Model
removeDuplicates(Model arg)
Remove duplicates.
-
-
-
Method Detail
-
hideHardware
public static Model hideHardware(Model arg)
Hide hardware (CPU, memory and disk) information.- Parameters:
arg
- old model- Returns:
- new model
-
flattenComponents
public static Model flattenComponents(Model arg)
Flatten component model so all components are at the outer/box level.- Parameters:
arg
- old model- Returns:
- new model
-
hideConnections
public static Model hideConnections(Model arg)
Hide connections.- Parameters:
arg
- old model- Returns:
- new model
-
removeDuplicates
public static Model removeDuplicates(Model arg)
Remove duplicates.- Parameters:
arg
- old model- Returns:
- new model
-
ignoreVMs
public static Model ignoreVMs(Model arg)
Ignore VM's and treat VM's like physical boxes.- Parameters:
arg
- old model- Returns:
- new model
-
filterLocations
public static java.util.List<Location> filterLocations(java.util.List<Location> allloc, Model m)
Filter non existing locations.- Parameters:
allloc
- all locationsm
- model- Returns:
- filtered locations
-
-