Package convex.gui.components
Class PeerView
java.lang.Object
convex.gui.components.PeerView
Class representing a lightweight view of a Peer.
Peer may be either a local Server or remote.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvex.core.Peer
Poll the current peer state.void
close()
StateModel<convex.core.State>
boolean
isLocal()
toString()
-
Field Details
-
peerConnection
-
peerServer
-
peerModel
-
stateModel
-
-
Constructor Details
-
PeerView
public PeerView()
-
-
Method Details
-
toString
-
checkPeer
public convex.core.Peer checkPeer()Poll the current peer state. Updates state models if necessary. Returns null if not a local peer.- Returns:
- Peer state for this PeerView
-
close
public void close() -
getHostAddress
-
isLocal
public boolean isLocal() -
getStateModel
-