• Installation Guide
  • Amoebot Model
  • User Guide
  • Model Reference
  • Dev Guide
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • AS2
      • AlgorithmGenerator
      • AlgorithmGeneratorEditor
      • AlgorithmManager
      • AlgorithmManager.AlgorithmInfo
      • AmoebotFunctions
      • AmoebotSimulator
      • CameraUtils
      • CellRect
      • CellRect.CellRect_Iterator
      • ColorData
      • Config
      • ConfigData
      • ConfigData.AdditionalConfiguration
      • ConfigData.SettingsMenu
      • ConfigurationEditor
      • ConfigurationEditorBehavior
      • Constants
      • Direction
      • DirectionHelpers
      • EventDatabase
      • FileBrowser
      • FileBrowser.FileTypeHandler
      • FilePaths
      • InitModeSaveData
      • InitParticleSaveData
      • InitRandomWithHoles
      • Initialization
      • Initialization.Chirality
      • Initialization.Compass
      • InitializationMethod
      • InitializationMethod.DistanceSortedVectorList
      • InitializationMethodManager
      • InitializationMethodManager.AlgorithmInfo
      • InitializationStateSaveData
      • Log
      • MaterialDatabase
      • MessageSaveData
      • MinMax
      • MouseController
      • PSPlacementMode
      • ParticleAttributeEnumSaveData
      • ParticleAttributePCSaveData
      • ParticleAttributeSaveDataBase
      • ParticleAttributeSaveData<T>
      • ParticleObjectSaveData
      • ParticleStateSaveData
      • PinConfigurationHistorySaveData
      • PinConfigurationSaveData
      • RandomNumberGenerator
      • SaveStateUtility
      • SimulationStateSaveData
      • StatusInfoAttribute
      • TypeConverter
      • TypeConverter.ConversionResult
      • UIDatabase
      • ValueHistorySaveData<T>
    • AS2.Algos.BeepFailureTest
      • BeepFailureTestParticle
    • AS2.Algos.BinOpTest
      • BinOpTestInitializer
      • BinOpTestParticle
      • BinOpTestParticle.Mode
    • AS2.Algos.BoundaryTest
      • BoundaryTestParticle
      • Phase
      • SCMode
    • AS2.Algos.BoundaryTestSub
      • BoundaryTestSubParticle
    • AS2.Algos.ChiralityCompass
      • ChiralityAndCompassInitializer
      • ChiralityAndCompassParticle
      • CoinTossResult
      • DirectionMessage
    • AS2.Algos.CollisionTestAlgo
      • CollisionTestAlgoInitializer
      • CollisionTestAlgoParticle
    • AS2.Algos.CollisionTestAlgo2
      • CollisionTestAlgo2Initializer
      • CollisionTestAlgo2Particle
      • Role
    • AS2.Algos.ExpandedCircuitTest
      • ExpandedCircuitTestInitializer
      • ExpandedCircuitTestParticle
    • AS2.Algos.JMTest
      • JMTestInitializer
      • JMTestParticle
    • AS2.Algos.LeaderElection
      • LeaderElectionInitializer
      • LeaderElectionParticle
    • AS2.Algos.LineFormation
      • LineFormationInitializer
      • LineFormationParticleSync
      • LineFormationParticleSync.LFState
      • MyMessage
      • MyMessage.Direction
    • AS2.Algos.ObjectTest
      • ObjectTestInitializer
      • ObjectTestParticle
    • AS2.Algos.PASCTestAlgo
      • PASCTestAlgoInitializer
      • PASCTestAlgoParticle
    • AS2.Algos.SingleSourceSP
      • SingleSourceSPInitializer
      • SingleSourceSPParticle
      • SingleSourceSPParticle.Phase
    • AS2.Algos.SmartMaterial
      • SmartMaterialInitializer
      • SmartMaterialParticle
    • AS2.Algos.SubroutineTest
      • SubroutineTestInitializer
      • SubroutineTestParticle
    • AS2.Algos.SubroutineTest2
      • SubroutineTest2Initializer
      • SubroutineTest2Particle
    • AS2.Sim
      • ActionType
      • AlgorithmException
      • AmoebotSimException
      • BondMovementInfo
      • BondMovementInfoList
      • Circuit
      • CollisionChecker
      • CollisionChecker.DebugLine
      • EdgeMovement
      • IParticleAttribute
      • IParticleObject
      • IReplayHistory
      • InitializationParticle
      • InvalidActionException
      • JointMovementInfo
      • Message
      • Neighbor<T>
      • OpenInitParticle
      • Particle
      • ParticleAction
      • ParticleAlgorithm
      • ParticleAttributeBase
      • ParticleAttributeFactory
      • ParticleAttributeWithHistory<T>
      • ParticleAttribute_Bool
      • ParticleAttribute_Direction
      • ParticleAttribute_Enum<T>
      • ParticleAttribute_Float
      • ParticleAttribute_Int
      • ParticleAttribute_PinConfiguration
      • ParticleAttribute_String
      • ParticleAttribute<T>
      • ParticleException
      • ParticleFactory
      • ParticleObject
      • ParticleSystem
      • ParticleSystem_Utils
      • PartitionSet
      • Pin
      • PinConfiguration
      • SimulationException
      • SimulatorException
      • SimulatorStateException
      • SysPartitionSet
      • SysPin
      • SysPinConfiguration
      • ValueHistoryBondInfo
      • ValueHistoryJointMovement
      • ValueHistoryMessage
      • ValueHistoryPinConfiguration
      • ValueHistory<T>
    • AS2.Subroutines
      • Subroutine
    • AS2.Subroutines.BinStateHelpers
      • BinAttributeBitField
      • BinAttributeBool
      • BinAttributeDirection
      • BinAttributeEnum<T>
      • BinAttributeInt
      • BinAttribute<T>
    • AS2.Subroutines.BinaryOps
      • BinOpUtils
      • SubAddition
      • SubBinOps
      • SubBinOps.Mode
      • SubComparison
      • SubComparison.ComparisonResult
      • SubDivision
      • SubMSBDetection
      • SubMultiplication
      • SubSubtraction
    • AS2.Subroutines.BoundaryTest
      • SubBoundaryTest
    • AS2.Subroutines.ETT
      • Comparison
      • SubETT
    • AS2.Subroutines.LeaderElection
      • SubLeaderElection
    • AS2.Subroutines.LeaderElectionFast
      • SubLeaderElectionFast
    • AS2.Subroutines.LeaderElectionSync
      • SubLeaderElectionSync
    • AS2.Subroutines.PASC
      • SubPASC
      • SubPASC2
      • SubPASC2.NbrType
    • AS2.UI
      • ButtonHoldTrigger
      • ClickAction
      • ClickAction.ClickButton
      • ClickAction.ClickType
      • InitializationUIHandler
      • InputAction
      • InputAction.InputType
      • InputController
      • InputHandler
      • InputHandler.MouseState
      • InputManager
      • LineDrawer
      • LogUIHandler
      • LogUIHandler.EntryType
      • ObjectUIHandler
      • ParticleUIExtensionSmoothLerp
      • ParticleUIHandler
      • SettingsUIHandler
      • SizeFitter
      • Tooltip
      • TooltipHandler
      • UIHandler
      • UIHandler.UITool
      • UISetting
      • UISetting_Color
      • UISetting_Color.InputType
      • UISetting_Dropdown
      • UISetting_Header
      • UISetting_MinMax
      • UISetting_MinMax.InputType
      • UISetting_Slider
      • UISetting_Spacing
      • UISetting_Text
      • UISetting_Text.InputType
      • UISetting_Toggle
      • UISetting_ValueSlider
      • WorldSpaceBackgroundUIHandler
      • WorldSpaceUIHandler
      • WorldSpaceUIHandler.ParticleTextUIData
      • WorldSpaceUIHandler.TextType
    • AS2.Visuals
      • CircleDistributionCircleArea
      • CircleDistributionCircleLine
      • IGenerateDynamicMesh
      • IObjectInfo
      • IParticleGraphicsAdapter
      • IParticleState
      • InstancedDrawer
      • MaterialPropertyBlockData
      • MaterialPropertyBlockData_Circuits
      • MaterialPropertyBlockData_Objects
      • MaterialPropertyBlockData_Particles
      • MeshCreator_CircularView
      • MeshCreator_HexagonalView
      • ObjectGraphicsAdapter
      • ObjectGraphicsAdapter.VertexInfo
      • PSetDragHandler
      • ParticleBondGraphicState
      • ParticleGraphicsAdapterImpl
      • ParticleGraphicsAdapterImpl.ParticleMovement
      • ParticleGraphicsAdapterImpl.PositionSnap
      • ParticleJointMovementState
      • ParticleMovementState
      • ParticlePinGraphicState
      • ParticlePinGraphicState.CodeOverrideType_Node
      • ParticlePinGraphicState.NeighborPinConnection
      • ParticlePinGraphicState.PSetData
      • ParticlePinGraphicState.PSetData.GraphicalData
      • ParticlePinGraphicState.PSetData.GraphicalData.CodeOverrideType_PSet
      • ParticlePinGraphicState.PinDef
      • PartitionSetViewType
      • Polar2DCoordinate
      • PriorityQueue<T>
      • RenderBatchIndex
      • RenderSystem
      • RendererBackground
      • RendererCircuitPins_RenderBatch
      • RendererCircuitPins_RenderBatch.PropertyBlockData
      • RendererCircuitsAndBonds
      • RendererCircuits_Instance
      • RendererCircuits_Instance.GDRef
      • RendererCircuits_Instance.ParticleCircuitData
      • RendererCircuits_Instance.ParticleCircuitData.PSetInnerPinRef
      • RendererCircuits_Instance.ParticleCircuitData.PSetInnerPinRef.PinType
      • RendererCircuits_RenderBatch
      • RendererCircuits_RenderBatch.PropertyBlockData
      • RendererCircuits_RenderBatch.PropertyBlockData.ActiveState
      • RendererCircuits_RenderBatch.PropertyBlockData.LineType
      • RendererObjects
      • RendererParticles
      • RendererParticles_RenderBatch
      • RendererParticles_RenderBatch.PropertyBlockData
      • RendererUI
      • TextureCreator
      • ViewType
    • AS2.Visuals.Library
      • DegreeConstants
      • InterpolationConstants
      • MatrixConstants
      • MeshConstants
      • VectorConstants
      • BasicSample
      • CanvasSampleSaveFileImage
      • CanvasSampleSaveFileText
      • HexagonalExpansionPrototype

    Class ParticlePinGraphicState.PSetData

    Stores information belonging to a single partition set.

    Inheritance
    object
    ParticlePinGraphicState.PSetData
    Namespace: AS2.Visuals
    Assembly: .dll
    Syntax
    public class ParticlePinGraphicState.PSetData

    Constructors

    PSetData()

    Declaration
    private PSetData()

    Fields

    beepOrigin

    Whether the partition set sends a beep in the current round.

    Declaration
    public bool beepOrigin
    Field Value
    Type Description
    bool

    beepsThisRound

    Whether the partition set receives a beep in the current round.

    Declaration
    public bool beepsThisRound
    Field Value
    Type Description
    bool

    color

    The partition set's color.

    Declaration
    public Color color
    Field Value
    Type Description
    Color

    graphicalData

    This class stores graphical data. Please do not change the instance directly via the system, use the other methods in this class to assign coordinate values.

    Declaration
    public ParticlePinGraphicState.PSetData.GraphicalData graphicalData
    Field Value
    Type Description
    ParticlePinGraphicState.PSetData.GraphicalData

    isFaulty

    Whether the partition set has suffered a beep reception failure in the current round.

    Declaration
    public bool isFaulty
    Field Value
    Type Description
    bool

    pins

    The pins belonging to the partition set.

    Declaration
    public List<ParticlePinGraphicState.PinDef> pins
    Field Value
    Type Description
    List<ParticlePinGraphicState.PinDef>

    pool

    Declaration
    private static Stack<ParticlePinGraphicState.PSetData> pool
    Field Value
    Type Description
    Stack<ParticlePinGraphicState.PSetData>

    Methods

    Clear()

    Clears the system for pooling.

    Declaration
    public void Clear()

    CodePositionOverride_Coordinate(Polar2DCoordinate, bool)

    Code override of the position of the partition set by a polar coordinate. Replaces other code override values that have been set at this level of the object (like AutomaticRingPlacement). Different override methods for head and tail are allowed. Note that you also need to call the corresponding method in the ParticlePinGraphicState object to enable this mode.

    Declaration
    public void CodePositionOverride_Coordinate(Polar2DCoordinate coordinate, bool isHead)
    Parameters
    Type Name Description
    Polar2DCoordinate coordinate

    The polar coordinate relative from the particle center.

    bool isHead

    True for contracted particles or the head of expanded particles. Set it to false if you want to position an expanded partition set at the tail.

    HasPinsIn(bool)

    Returns whether the partition set is connected to pins in the given part of the particle ('head' for contracted particles or the head, 'tail' for the tail of expanded particles).

    Declaration
    public bool HasPinsIn(bool isHead)
    Parameters
    Type Name Description
    bool isHead

    Whether a pin in the head should be searched. false if a pin in the tail should be searched.

    Returns
    Type Description
    bool

    true if a pin has been found.

    HasPinsInHeadAndTail(bool)

    Checks whether the partition set contains pins in the particle's head and tail (if the particle is expanded).

    Declaration
    public bool HasPinsInHeadAndTail(bool recalcPinNumbers = true)
    Parameters
    Type Name Description
    bool recalcPinNumbers

    If true, recalculate the pin counts before checking (necessary if the partition set data has recently changed.

    Returns
    Type Description
    bool

    true if and only if the partition set contains pins both in the particle's head and in its tail.

    PoolCreate()

    Instantiates an object or uses pooling to recycle an old object.

    Declaration
    public static ParticlePinGraphicState.PSetData PoolCreate()
    Returns
    Type Description
    ParticlePinGraphicState.PSetData

    A fresh ParticlePinGraphicState.PSetData instance.

    PoolRelease(PSetData)

    Clears and adds the object instance to the pool.

    Declaration
    public static void PoolRelease(ParticlePinGraphicState.PSetData obj)
    Parameters
    Type Name Description
    ParticlePinGraphicState.PSetData obj

    The instance to be recycled.

    PrecalculatePinNumbersAndStoreInGD()

    Calculates if the partition set has pins + the number of pins in the given part of the particle and stores it in variables in the graphical data for fast and easy access.

    Declaration
    public void PrecalculatePinNumbersAndStoreInGD()

    UpdatePSetData(Color, bool, params PinDef[])

    Updates the state of this container.

    Declaration
    public void UpdatePSetData(Color color, bool beepsThisRound, params ParticlePinGraphicState.PinDef[] pins)
    Parameters
    Type Name Description
    Color color

    The color the partition set lines should have.

    bool beepsThisRound

    true if there is a beep in this round.

    PinDef[] pins

    An array of pin references that show the pins contained in this system.

    UpdatePSetData(Color, bool, bool, bool, params PinDef[])

    Updates the state of this container.

    Declaration
    public void UpdatePSetData(Color color, bool beepsThisRound, bool beepOrigin, bool faulty, params ParticlePinGraphicState.PinDef[] pins)
    Parameters
    Type Name Description
    Color color

    The color the partition set lines should have.

    bool beepsThisRound

    true if there is a beep in this round.

    bool beepOrigin

    true if the origin of the beep came from this particle.

    bool faulty

    true if this particle has not received a beep due to a failure.

    PinDef[] pins

    An array of pin references that show the pins contained in this system.

    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX