alchemist
Toggle table of contents
jvm
Platform filter
jvm
Switch theme
Search in API
alchemist
alchemist
/
it.unibo.alchemist.boundary.graphql.schema.model.surrogates
/
NeighborhoodSurrogate
Neighborhood
Surrogate
data
class
NeighborhoodSurrogate
<
T
>
(
val
origin
:
Neighborhood
<
T
>
)
:
GraphQLSurrogate
<
Neighborhood
<
T
>
>
A GraphQL surrogate for a
Neighborhood
.
Members
Constructors
Neighborhood
Surrogate
Link copied to clipboard
constructor
(
origin
:
Neighborhood
<
T
>
)
Properties
origin
Link copied to clipboard
open
override
val
origin
:
Neighborhood
<
T
>
size
Link copied to clipboard
val
size
:
Int
Functions
contains
Link copied to clipboard
fun
contains
(
node
:
NodeSurrogate
<
T
>
)
:
Boolean
Check whether a node is contained in this neighborhood.
get
Center
Link copied to clipboard
fun
getCenter
(
)
:
NodeSurrogate
<
T
>
get
Neighbors
Link copied to clipboard
fun
getNeighbors
(
)
:
List
<
NodeSurrogate
<
T
>
>
is
Empty
Link copied to clipboard
fun
isEmpty
(
)
:
Boolean