Source code: com/trapezium/attractor/NearPreservingCoordAttractor.java
1 /*
2 * @(#)NearPreservingCoordAttractor.java
3 *
4 * Copyright (c) 1998 by Trapezium Development LLC. All Rights Reserved.
5 *
6 * The information in this file is the property of Trapezium Development LLC
7 * and may be used only in accordance with the terms of the license granted
8 * by Trapezium.
9 *
10 */
11 package com.trapezium.attractor;
12
13 import com.trapezium.space.*;
14
15 /** The NearPreservingCoordAttractor is a CoordAttractor that marks the
16 * nearest floater in the attracted set.
17 *
18 * @author Johannes N. Johannsen
19 * @version 1.0, 8 Oct 1998
20 *
21 * @since 1.0
22 */
23
24 public class NearPreservingCoordAttractor extends CoordAttractor {
25
26 /** Class constructor */
27 public NearPreservingCoordAttractor( SpaceEntitySet attractors ) {
28 super( attractors );
29 }
30
31 /** AttractorSelector which marks nearest floaters in attracted set */
32 public AttractorSelector createAttractorSelector() {
33 return( new NearPreservingAttractorSelector() );
34 }
35 }