toggle menu
alchemist
35.0.3
jvm
switch theme
search in API
alchemist-graphql-surrogates
/
it.unibo.alchemist.boundary.graphql.schema.model.surrogates
/
NeighborhoodSurrogate
Neighborhood
Surrogate
data
class
NeighborhoodSurrogate
<
T
>
(
val
origin
:
Neighborhood
<
T
>
)
:
GraphQLSurrogate
<
Neighborhood
<
T
>
>
(
source
)
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