public class StateBrokerHandler extends java.lang.Object implements IStateBrokerHandler, ISFRComponentVisitor
StateBroker
. It is tailored
specifically for SFRComponent
s and the SFR analysis views.Constructor and Description |
---|
StateBrokerHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
addValue(java.lang.Object value,
java.lang.Object parent,
StateBroker broker)
This method only adds SFRComponents, specifically reactors, assemblies,
and rods/pins (or any component implemented in this class' visit
operations).
|
java.lang.String |
getKey(java.lang.Object object)
This method returns keys only for SFRComponents, specifically reactors,
assemblies, and pins/rods.
|
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
SFRComponent s. |
void |
visit(Material sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a Material.
|
void |
visit(MaterialBlock sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a MaterialBlock.
|
void |
visit(PinAssembly sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a PinAssembly.
|
void |
visit(ReflectorAssembly sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a ReflectorAssembly.
|
void |
visit(Ring sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a Ring.
|
void |
visit(SFRAssembly sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a SFRAssembly.
|
void |
visit(SFReactor sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a SFReactor.
|
void |
visit(SFRPin sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a SFRPin.
|
void |
visit(SFRRod sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a SFRRod.
|
public void setStateBroker(StateBroker broker)
StateBroker
used by this handler to store
SFRComponent
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 visit(SFReactor sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a SFReactor.
visit
in interface ISFRComponentVisitor
sfrComp
- The SFReactor accepting the visitor.public void visit(SFRAssembly sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a SFRAssembly.
visit
in interface ISFRComponentVisitor
sfrComp
- The SFRAssembly being visited.public void visit(PinAssembly sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a PinAssembly.
visit
in interface ISFRComponentVisitor
sfrComp
- The PinAssembly accepting the visitor.public void visit(ReflectorAssembly sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a ReflectorAssembly.
visit
in interface ISFRComponentVisitor
sfrComp
- The ReflectorAssembly accepting the visitor.public void visit(SFRPin sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a SFRPin.
visit
in interface ISFRComponentVisitor
sfrComp
- The SFRPin accepting the visitor.public void visit(SFRRod sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a SFRRod.
visit
in interface ISFRComponentVisitor
sfrComp
- The SFRRod accepting the visitor.public void visit(MaterialBlock sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a MaterialBlock.
visit
in interface ISFRComponentVisitor
sfrComp
- The MaterialBlock accepting the visitor.public void visit(Material sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a Material.
visit
in interface ISFRComponentVisitor
sfrComp
- The Material accepting the visitor.public void visit(Ring sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a Ring.
visit
in interface ISFRComponentVisitor
sfrComp
- The Ring accepting the visitor.