public class NekPolygon extends DetailedFace implements IVizUpdateableListener
component
Constructor and Description |
---|
NekPolygon()
The default constructor
|
NekPolygon(java.util.List<IController> entities)
A constructor for specifying the child entities.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntityToCategory(IController entity,
IMeshCategory category)
An implementation of addEntity that adds both the Edge and its Vertices.
|
java.lang.Object |
clone() |
void |
copy(IMesh otherObject)
Deep copies the contents of another AbstractMeshComponent into this one.
|
boolean |
equals(java.lang.Object otherObject) |
java.util.HashMap<java.lang.Integer,EdgeProperties> |
getEdgeProperties()
Getter method for the map of edge properties.
|
BoundaryCondition |
getFluidBoundaryCondition(int edgeId)
Gets the fluid boundary condition for an edge of the polygon.
|
BoundaryCondition |
getOtherBoundaryCondition(int edgeId,
int otherId)
Gets a passive scalar boundary condition for an edge of the polygon.
|
PolygonProperties |
getPolygonProperties()
Returns the properties for the current polygon.
|
BoundaryCondition |
getThermalBoundaryCondition(int edgeId)
Gets the thermal boundary condition for an edge of the polygon.
|
void |
initializeBoundaryConditions(IController edge)
Create a set of edge properties for the given edge and place them in the
properties, keyed by that edge's id.
|
void |
setController(IController controller)
Setter method for the controller.
|
void |
setEdgeProperties(java.util.HashMap<java.lang.Integer,EdgeProperties> edgeProperties)
Setter method for the map of edge properties.
|
void |
setFluidBoundaryCondition(int edgeId,
BoundaryCondition condition)
Sets a fluid boundary condition for an edge of the polygon.
|
void |
setOtherBoundaryCondition(int edgeId,
int otherId,
BoundaryCondition condition)
Sets a passive scalar boundary condition for an edge of the polygon.
|
void |
setPolygonProperties(java.lang.String materialId,
int group)
Sets the properties for the current polygon.
|
void |
setThermalBoundaryCondition(int edgeId,
BoundaryCondition condition)
Sets a thermal boundary condition for an edge of the polygon.
|
void |
update(IManagedUpdateable component,
SubscriptionType[] type)
Receive an update, including the source component and type of event that
triggered the update.
|
void |
update(IVizUpdateable component)
This operation notifies the listener that an update has occurred in the
Component.
|
removeEntity
addEntity, getAllEntities, getController, getEntities, getEntitiesFromCategory, getEntitiesFromCategory, getEntityCategories, getProperties, getProperty, getPropertyMap, getRotation, getScale, getSize, getSkew, getSubscriptions, getTransformation, getTranslation, getType, hashCode, register, setEntities, setProperties, setProperty, setTransformation, setType, unregister
public NekPolygon()
public NekPolygon(java.util.List<IController> entities)
entities
- The child entities comprising the facepublic void initializeBoundaryConditions(IController edge)
edge
- The edge for which boundary conditions are being createdpublic java.util.HashMap<java.lang.Integer,EdgeProperties> getEdgeProperties()
public BoundaryCondition getFluidBoundaryCondition(int edgeId)
Gets the fluid boundary condition for an edge of the polygon.
edgeId
- The ID of the edge that has a BoundaryCondition.public BoundaryCondition getOtherBoundaryCondition(int edgeId, int otherId)
Gets a passive scalar boundary condition for an edge of the polygon.
edgeId
- The ID of the edge that has a BoundaryCondition.otherId
- The ID or index of the set of passive scalar boundary
conditions.public PolygonProperties getPolygonProperties()
Returns the properties for the current polygon.
public BoundaryCondition getThermalBoundaryCondition(int edgeId)
Gets the thermal boundary condition for an edge of the polygon.
edgeId
- The ID of the edge that has a BoundaryCondition.public void setEdgeProperties(java.util.HashMap<java.lang.Integer,EdgeProperties> edgeProperties)
edgeProperties
- A map from edge ID numbers to that edge's edge properties.public void setFluidBoundaryCondition(int edgeId, BoundaryCondition condition)
Sets a fluid boundary condition for an edge of the polygon.
edgeId
- The ID of the edge that will have the new BoundaryCondition.condition
- The new BoundaryCondition.public void setOtherBoundaryCondition(int edgeId, int otherId, BoundaryCondition condition)
Sets a passive scalar boundary condition for an edge of the polygon.
edgeId
- The ID of the edge that will have the new BoundaryCondition.otherId
- The ID or index of the set of passive scalar boundary
conditions.condition
- The new BoundaryCondition.public void setPolygonProperties(java.lang.String materialId, int group)
Sets the properties for the current polygon.
materialId
- The material ID of the current polygon.group
- The group number of the current polygon.public void setThermalBoundaryCondition(int edgeId, BoundaryCondition condition)
Sets a thermal boundary condition for an edge of the polygon.
edgeId
- The ID of the edge that will have the new BoundaryCondition.condition
- The new BoundaryCondition.public void addEntityToCategory(IController entity, IMeshCategory category)
DetailedFace
addEntityToCategory
in interface IMesh
addEntityToCategory
in class DetailedFace
entity
- The new child entity to be addedcategory
- The new entity's categorypublic void setController(IController controller)
IMesh
setController
in interface IMesh
setController
in class BasicMesh
controller
- The IController which manages this componentpublic void update(IManagedUpdateable component, SubscriptionType[] type)
IManagedUpdateableListener
update
in interface IManagedUpdateableListener
update
in class BasicMesh
component
- The updateable component the update is coming fromtype
- The event type that of the updatepublic java.lang.Object clone()
clone
in class DetailedFace
public void copy(IMesh otherObject)
IMesh
copy
in interface IMesh
copy
in class DetailedFace
otherObject
- The object which will be copied into this.public void update(IVizUpdateable component)
IVizUpdateableListener
This operation notifies the listener that an update has occurred in the Component.
update
in interface IVizUpdateableListener
component
- The component that was updated in some way.