public class StateBrokerHandler extends java.lang.Object implements IStateBrokerHandler, ILWRComponentVisitor, IPlantComponentVisitor
StateBroker
. It is tailored
specifically for LWRComponent
s and the LWR analysis views.Constructor and Description |
---|
StateBrokerHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(LWRComponent lwrComp)
Adds an
LWRComponent to the current StateBroker . |
void |
addComponent(LWRComponent lwrComp,
IDataProvider data,
int row,
int column)
Adds an
LWRComponent to the current StateBroker . |
void |
addComponent(LWRComponent lwrComp,
int row,
int column)
Adds an
LWRComponent to the current StateBroker . |
void |
addComponent(PlantComponent plantComp)
Adds an
PlantComponent to the current StateBroker . |
boolean |
addValue(java.lang.Object value,
java.lang.Object parent,
StateBroker broker)
This method only adds LWRComponents, specifically reactors, assemblies,
and rods/tubes (or any component implemented in this class' visit
operations).
|
java.lang.String |
getKey(java.lang.Object object)
This method returns keys only for LWRComponents, specifically reactors,
assemblies, and rods/tubes.
|
void |
setDataSource(DataSource dataSource)
Sets the DataSource (Input or Reference) for which data is being added to
the tree.
|
void |
setStateBroker(StateBroker broker)
Sets the
StateBroker used by this handler to store
LWRComponent s. |
void |
visit(Boundary plantComp)
Visits a PlantComponent of type Boundary.
|
void |
visit(Branch plantComp)
Visits a PlantComponent of type Branch.
|
void |
visit(BWReactor lwrComp)
BWReactors are not currently supported.
|
void |
visit(ControlBank lwrComp)
Wraps the assembly in an
LWRComponentInfo . |
void |
visit(CoreChannel plantComp)
Visits a PlantComponent of type CoreChannel.
|
void |
visit(DownComer plantComp)
Visits a PlantComponent of type DownComer.
|
void |
visit(FlowJunction plantComp)
Visits a PlantComponent of type FlowJunction.
|
void |
visit(FuelAssembly lwrComp)
Wraps the assembly in an
LWRComponentInfo . |
void |
visit(GeometricalComponent plantComp)
Visits a PlantComponent of type GeometricalComponent.
|
void |
visit(HeatExchanger plantComp)
Visits a PlantComponent of type HeatExchanger.
|
void |
visit(IdealPump plantComp)
Visits a PlantComponent of type IdealPump.
|
void |
visit(IncoreInstrument lwrComp)
Wraps the assembly in an
LWRComponentInfo . |
void |
visit(Inlet plantComp)
Visits a PlantComponent of type Inlet.
|
void |
visit(Junction plantComp)
Visits a PlantComponent of type Junction.
|
void |
visit(LWRRod lwrComp)
Wraps the rod in an
LWRComponentInfo . |
void |
visit(MassFlowInlet plantComp)
Visits a PlantComponent of type MassFlowInlet.
|
void |
visit(OneInOneOutJunction plantComp)
Visits a PlantComponent of type OneInOneOutJunction.
|
void |
visit(Outlet plantComp)
Visits a PlantComponent of type Outlet.
|
void |
visit(Pipe plantComp)
Visits a PlantComponent of type Pipe.
|
void |
visit(PipeToPipeJunction plantComp)
Visits a PlantComponent of type PipeToPipeJunction.
|
void |
visit(PipeWithHeatStructure plantComp)
Visits a PlantComponent of type PipeWithHeatStructure.
|
void |
visit(PlantComposite plantComp) |
void |
visit(PointKinetics plantComp)
Visits a PlantComponent of type PointKinetics.
|
void |
visit(PressurizedWaterReactor lwrComp)
Adds the reactor directly to the broker as is.
|
void |
visit(Pump plantComp)
Visits a PlantComponent of type Pump.
|
void |
visit(PWRAssembly lwrComp)
This method is not actually a part of
ILWRComponentVisitor , but
it can serve as the visit operation for any PWRAssembly type (fuel
assemblies and RCAs).Wraps the assembly in an LWRComponentInfo . |
void |
visit(Reactor plantComp)
Visits a PlantComponent of type Reactor.
|
void |
visit(Ring lwrComp)
Rings are not currently supported.
|
void |
visit(RodClusterAssembly lwrComp)
Wraps the assembly in an
LWRComponentInfo . |
void |
visit(SeparatorDryer plantComp)
Visits a PlantComponent of type SeparatorDryer.
|
void |
visit(SolidWall plantComp)
Visits a PlantComponent of type SolidWall.
|
void |
visit(SpecifiedDensityAndVelocityInlet plantComp)
Visits a PlantComponent of type SpecifiedDensityAndVelocityInlet.
|
void |
visit(Subchannel plantComp)
Visits a PlantComponent of type GeometricalComponent.
|
void |
visit(SubchannelBranch plantComp)
Visits a PlantComponent of type SubchannelBranch.
|
void |
visit(TDM plantComp)
Visits a PlantComponent of type TDM.
|
void |
visit(TimeDependentJunction plantComp)
Visits a PlantComponent of type TimeDependentJunction.
|
void |
visit(TimeDependentVolume plantComp)
Visits a PlantComponent of type TimeDependentVolume.
|
void |
visit(Tube lwrComp)
Wraps the tube in an
LWRComponentInfo . |
void |
visit(Turbine plantComp)
Visits a PlantComponent of type Turbine.
|
void |
visit(Valve plantComp)
Visits a PlantComponent of type Valve.
|
void |
visit(VolumeBranch plantComp)
Visits a PlantComponent of type VolumeBranch.
|
void |
visit(WetWell plantComp)
Visits a PlantComponent of type WetWell.
|
public void setStateBroker(StateBroker broker)
StateBroker
used by this handler to store
LWRComponent
s.broker
- The new StateBroker.public void setDataSource(DataSource dataSource)
IStateBrokerHandler
setDataSource
in interface IStateBrokerHandler
dataSource
- The DataSource for the data being added to the broker (Input
or Reference).public java.lang.String getKey(java.lang.Object object)
getKey
in interface IStateBrokerHandler
object
- The object that will be added to a StateBroker.public boolean addValue(java.lang.Object value, java.lang.Object parent, StateBroker broker)
addValue
in interface IStateBrokerHandler
value
- The value to add to the StateBroker.parent
- The parent of the value object.broker
- The StateBroker that will store the value. If null, no value
is added.public void addComponent(PlantComponent plantComp)
PlantComponent
to the current StateBroker
.plantComp
- The PlantComponent to add to the StateBroker.public void addComponent(LWRComponent lwrComp)
LWRComponent
to the current StateBroker
. No data
or location information is provided, but any such information that is
required will be found, if possible.lwrComp
- The LWRComponent to add to the StateBroker.public void addComponent(LWRComponent lwrComp, int row, int column)
LWRComponent
to the current StateBroker
. No data
is provided.lwrComp
- The LWRComponent to add to the StateBroker.row
- The row of the LWRComponent in its parent LWRComponent.column
- The column of the LWRComponent in its parent LWRComponent.public void addComponent(LWRComponent lwrComp, IDataProvider data, int row, int column)
LWRComponent
to the current StateBroker
.lwrComp
- The LWRComponent to add to the StateBroker.data
- An IDataProvider
associated either with the
LWRComponent or its location in its parent LWRComponent.row
- The row of the LWRComponent in its parent LWRComponent.column
- The column of the LWRComponent in its parent LWRComponent.public void visit(PressurizedWaterReactor lwrComp)
visit
in interface ILWRComponentVisitor
lwrComp
- The PWReactor that must accept this visitor
public void visit(BWReactor lwrComp)
visit
in interface ILWRComponentVisitor
lwrComp
- The BWReactor that must accept this visitor
public void visit(PWRAssembly lwrComp)
ILWRComponentVisitor
, but
it can serve as the visit operation for any PWRAssembly type (fuel
assemblies and RCAs).LWRComponentInfo
. No data provider is
necessary.lwrComp
- The PWRAssembly that is being visited.public void visit(FuelAssembly lwrComp)
LWRComponentInfo
. No data provider is
necessary.visit
in interface ILWRComponentVisitor
lwrComp
- The FuelAssembly that must accept this visitor
public void visit(RodClusterAssembly lwrComp)
LWRComponentInfo
. No data provider is
necessary.visit
in interface ILWRComponentVisitor
lwrComp
- The RCA that must accept this visitor
public void visit(LWRRod lwrComp)
LWRComponentInfo
. The appropriate data
provider should be added.visit
in interface ILWRComponentVisitor
lwrComp
- The LWRRod that must accept this visitor
public void visit(ControlBank lwrComp)
LWRComponentInfo
. No data provider is
necessary.visit
in interface ILWRComponentVisitor
lwrComp
- The ControlBank that must accept this visitor
public void visit(IncoreInstrument lwrComp)
LWRComponentInfo
. No data provider is
necessary.visit
in interface ILWRComponentVisitor
lwrComp
- The IncoreInstrument that must accept this visitor
public void visit(Tube lwrComp)
LWRComponentInfo
. The appropriate data
provider should be added.visit
in interface ILWRComponentVisitor
lwrComp
- The Ring that must accept this visitor
public void visit(Ring lwrComp)
visit
in interface ILWRComponentVisitor
lwrComp
- The Tube that must accept this visitor
public void visit(PlantComposite plantComp)
visit
in interface IPlantComponentVisitor
public void visit(GeometricalComponent plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type GeometricalComponent.
visit
in interface IPlantComponentVisitor
plantComp
- The GeometricalComponent accepting visitors.
public void visit(Junction plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type Junction.
visit
in interface IPlantComponentVisitor
plantComp
- The Junction accepting visitors.
public void visit(Reactor plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type Reactor.
visit
in interface IPlantComponentVisitor
plantComp
- The Reactor accepting visitors.
public void visit(PointKinetics plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type PointKinetics.
visit
in interface IPlantComponentVisitor
plantComp
- The PointKinetics accepting visitors.
public void visit(HeatExchanger plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type HeatExchanger.
visit
in interface IPlantComponentVisitor
plantComp
- The HeatExchanger accepting visitors.
public void visit(Pipe plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type Pipe.
visit
in interface IPlantComponentVisitor
plantComp
- The Pipe accepting visitors.
public void visit(CoreChannel plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type CoreChannel.
visit
in interface IPlantComponentVisitor
plantComp
- The CoreChannel accepting visitors.
public void visit(Subchannel plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type GeometricalComponent.
visit
in interface IPlantComponentVisitor
plantComp
- The Subchannel accepting visitors.
public void visit(PipeWithHeatStructure plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type PipeWithHeatStructure.
visit
in interface IPlantComponentVisitor
plantComp
- The PipeWithHeatStructure accepting visitors.
public void visit(Branch plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type Branch.
visit
in interface IPlantComponentVisitor
plantComp
- The Branch accepting visitors.
public void visit(SubchannelBranch plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type SubchannelBranch.
visit
in interface IPlantComponentVisitor
plantComp
- The SubchannelBranch accepting visitors.
public void visit(VolumeBranch plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type VolumeBranch.
visit
in interface IPlantComponentVisitor
plantComp
- The VolumeBranch accepting visitors.
public void visit(FlowJunction plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type FlowJunction.
visit
in interface IPlantComponentVisitor
plantComp
- The FlowJunction accepting visitors.
public void visit(WetWell plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type WetWell.
visit
in interface IPlantComponentVisitor
plantComp
- The WetWell accepting visitors.
public void visit(Boundary plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type Boundary.
visit
in interface IPlantComponentVisitor
plantComp
- The Boundary accepting visitors.
public void visit(OneInOneOutJunction plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type OneInOneOutJunction.
visit
in interface IPlantComponentVisitor
plantComp
- The OneInOneOutJunction accepting visitors.
public void visit(Turbine plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type Turbine.
visit
in interface IPlantComponentVisitor
plantComp
- The Turbine accepting visitors.
public void visit(IdealPump plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type IdealPump.
visit
in interface IPlantComponentVisitor
plantComp
- The IdealPump accepting visitors.
public void visit(Pump plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type Pump.
visit
in interface IPlantComponentVisitor
plantComp
- The Pump accepting visitors.
public void visit(Valve plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type Valve.
visit
in interface IPlantComponentVisitor
plantComp
- The Valve accepting visitors.
public void visit(PipeToPipeJunction plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type PipeToPipeJunction.
visit
in interface IPlantComponentVisitor
plantComp
- The PipeToPipeJunction accepting visitors.
public void visit(Inlet plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type Inlet.
visit
in interface IPlantComponentVisitor
plantComp
- The Inlet accepting visitors.
public void visit(MassFlowInlet plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type MassFlowInlet.
visit
in interface IPlantComponentVisitor
plantComp
- The MassFlowInlet accepting visitors.
public void visit(SpecifiedDensityAndVelocityInlet plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type SpecifiedDensityAndVelocityInlet.
visit
in interface IPlantComponentVisitor
plantComp
- The SpecifiedDensityAndVelocityInlet accepting visitors.
public void visit(Outlet plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type Outlet.
visit
in interface IPlantComponentVisitor
plantComp
- The Outlet accepting visitors.
public void visit(SolidWall plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type SolidWall.
visit
in interface IPlantComponentVisitor
plantComp
- The SolidWall accepting visitors.
public void visit(TDM plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type TDM.
visit
in interface IPlantComponentVisitor
plantComp
- The TDM accepting visitors.
public void visit(TimeDependentJunction plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type TimeDependentJunction.
visit
in interface IPlantComponentVisitor
plantComp
- The TimeDependentJunction accepting visitors.
public void visit(TimeDependentVolume plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type TimeDependentVolume.
visit
in interface IPlantComponentVisitor
plantComp
- The TimeDependentVolume accepting visitors.
public void visit(DownComer plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type DownComer.
visit
in interface IPlantComponentVisitor
plantComp
- The DownComer accepting visitors.
public void visit(SeparatorDryer plantComp)
IPlantComponentVisitor
Visits a PlantComponent of type SeparatorDryer.
visit
in interface IPlantComponentVisitor
plantComp
- The SeparatorDryer accepting visitors.