Class Node

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClassSwitch, Fork, Logger, ServiceNode, Sink, StatefulNode

public class Node extends NetworkElement implements Serializable
Superclass for a node element within a Network model
See Also:
  • Field Details

    • model

      public Network model
    • input

      protected InputSection input
    • output

      protected OutputSection output
    • server

      protected ServiceSection server
    • dropStrategy

      protected DropStrategy dropStrategy
    • statefulIdx

      protected int statefulIdx
    • nodeIndex

      protected int nodeIndex
    • stationIdx

      protected int stationIdx
  • Constructor Details

    • Node

      public Node(String nodeName)
  • Method Details

    • getModel

      public Network getModel()
    • setModel

      public void setModel(Network model)
    • setRouting

      public void setRouting(JobClass jobClass, RoutingStrategy routingStrategy)
    • setRouting

      public void setRouting(JobClass jobClass, RoutingStrategy routingStrategy, Node destination, double probability)
    • setProbRouting

      public void setProbRouting(JobClass jobClass, Node destination, double probability)
    • resetRouting

      public void resetRouting()
    • getRoutingStrategy

      public RoutingStrategy getRoutingStrategy(JobClass jobClass)
    • printSummary

      public void printSummary()
    • getClassCap

      public double getClassCap(JobClass jobClass)
    • getCap

      public double getCap()
    • getOutputStrategies

      public List<OutputStrategy> getOutputStrategies()
    • getDropStrategy

      public DropStrategy getDropStrategy()
    • isReferenceStation

      public boolean isReferenceStation()
    • getStatefulIdx

      public int getStatefulIdx()
    • isStateful

      public boolean isStateful()
    • getNodeIdx

      public int getNodeIdx()
    • setNodeIdx

      public void setNodeIdx(int index)
    • getStationIdx

      public int getStationIdx()
    • setStationIdx

      public void setStationIdx(int index)
    • getInput

      public InputSection getInput()
    • getOutput

      public OutputSection getOutput()
    • getServer

      public ServiceSection getServer()
    • getAttribute

      public NodeAttribute getAttribute()
    • reset

      public void reset()
    • getSections

      public List<Section> getSections()