|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataView
Provides different views to the core data structures. TODO consider using Collection instead of List for every method whose return value doesn't explicitly require a List
Method Summary | |
---|---|
void |
addFlow(Flow flow)
Adds the given flow to this view. |
void |
addHost(Host host)
Adds the given host to this view. |
void |
addLayer(Layer layer)
Adds the given layer to this view. |
void |
addLink(Link link)
Adds the given link to this view. |
void |
addProtocol(Protocol protocol)
Adds the given protocol to this view. |
void |
addTransferUnit(TransferUnit unit,
boolean recurse)
Adds a transfer unit to the view. |
java.util.List |
getAvailableVariables(Layer layer)
Returns a list of all the available variables (those that have values longer than zero characters) on the specified layer. |
float |
getEndTime()
Returns the end time of the network exchange data, as the timestamp of the last event included in the data, regardless of the type of event, layer etc. |
float |
getEndTimeForLayer(Layer layer)
Returns the end time of the network exchange data for a particular layer, as the timestamp of the last event in the layer. |
Flow |
getFlowById(long id)
Returns the flow by the given id, if any. |
java.util.List |
getFlows()
Returns all the flows present in the scenario. |
Host |
getHostById(long id)
Returns the host by the id. |
java.util.List |
getHosts()
Returns all the hosts present in the scenario. |
Layer |
getLayerById(long id)
Returns the layer with the given id. |
java.util.List |
getLayers()
Returns all the layers present in the scenario, ordered from lower to higher. |
Link |
getLinkById(long id)
Returns the link with the given id, if any. |
java.util.List |
getLinks()
Returns a list of all the links in the scenario. |
Protocol |
getProtocolById(long id)
Returns the protocol with the given id, if any. |
java.util.List |
getProtocols()
Returns all the protocols present. |
StepIterator |
getStepIterator(Layer layer)
Returns an iterator for the steps on
the specified layer. |
TransferUnit |
getUnitById(long id)
Returns the transfer unit with the given id, if any. |
java.util.List |
getUnitsForLayer(Layer layer)
Returns a sorted list of all the units in
the given layer. |
java.util.List |
getUnitsForLayer(Layer layer,
float start,
float end)
Returns a collection of all the units in
the given layer between the given timestamps (inclusive). |
int |
getValueMaxLength(VariableDefinition def)
Returns the maximum length of all the values of the given variable. |
Method Detail |
---|
void addHost(Host host)
void addFlow(Flow flow)
void addLink(Link link)
void addLayer(Layer layer)
void addProtocol(Protocol protocol)
void addTransferUnit(TransferUnit unit, boolean recurse)
recurse
is
true, the method will recurse to the children of the unit and
add them to the view as well.
unit
- to addrecurse
- whether to recursejava.util.List getUnitsForLayer(Layer layer)
units
in
the given layer.
layer
- whose units to returnjava.util.List getUnitsForLayer(Layer layer, float start, float end)
units
in
the given layer between the given timestamps (inclusive).
layer
- whose units to returnstart
- timestampsend
- timestampsTransferUnit getUnitById(long id)
StepIterator getStepIterator(Layer layer)
iterator
for the steps on
the specified layer.
layer
- to step thru
float getEndTime()
float getEndTimeForLayer(Layer layer)
int getValueMaxLength(VariableDefinition def)
java.util.List getAvailableVariables(Layer layer)
java.util.List getHosts()
hosts
present in the scenario.
Host getHostById(long id)
java.util.List getFlows()
flows
present in the scenario.
Flow getFlowById(long id)
java.util.List getLayers()
Layer getLayerById(long id)
java.util.List getProtocols()
Protocol getProtocolById(long id)
java.util.List getLinks()
links
in the scenario.
Link getLinkById(long id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |