Package org.neuroml.model.util
Class CellUtils
java.lang.Object
org.neuroml.model.util.CellUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
static double
getFractionAlongSegGroupLength
(Cell cell, String segmentGroup, int segmentId, float fractAlongSegment) static LinkedHashMap<Integer,
Segment> getIdsVsSegments
(Cell cell) static LinkedHashMap<String,
SegmentGroup> getNamesVsSegmentGroups
(Cell cell) static SegmentGroup
getSegmentGroup
(Cell cell, String id) static LinkedHashMap<SegmentGroup,
ArrayList<Integer>> getSegmentGroupsVsSegIds
(Cell cell) getSegmentIdsInGroup
(LinkedHashMap<String, SegmentGroup> namesVsSegmentGroups, SegmentGroup segmentGroup) getSegmentIdsInGroup
(Cell cell, String segmentGroup) getSegmentsInGroup
(Cell cell, String segmentGroup) getSegmentsInGroup
(Cell cell, LinkedHashMap<String, SegmentGroup> namesVsSegmentGroups, SegmentGroup segmentGroup) static Segment
getSegmentWithId
(Cell cell, int segmentId) static boolean
hasSegmentGroup
(Cell cell, String segmentGroup) static boolean
static boolean
static void
-
Field Details
-
NEUROML2_NEUROLEX_UNBRANCHED_NONOVERLAPPING_SEG_GROUP
-
-
Constructor Details
-
CellUtils
public CellUtils()
-
-
Method Details
-
isUnbranchedNonOverlapping
-
hasUnbranchedNonOverlappingInfo
-
getIdsVsSegments
-
getSegmentGroup
- Throws:
NeuroMLException
-
getSegmentWithId
- Throws:
NeuroMLException
-
getNamesVsSegmentGroups
-
getSegmentIdsInGroup
-
getSegmentIdsInGroup
public static ArrayList<Integer> getSegmentIdsInGroup(LinkedHashMap<String, SegmentGroup> namesVsSegmentGroups, SegmentGroup segmentGroup) -
hasSegmentGroup
-
getSegmentsInGroup
public static ArrayList<Segment> getSegmentsInGroup(Cell cell, String segmentGroup) throws NeuroMLException - Throws:
NeuroMLException
-
getSegmentsInGroup
public static ArrayList<Segment> getSegmentsInGroup(Cell cell, LinkedHashMap<String, SegmentGroup> namesVsSegmentGroups, SegmentGroup segmentGroup) throws NeuroMLException- Throws:
NeuroMLException
-
getSegmentGroupsVsSegIds
-
distance
-
getFractionAlongSegGroupLength
public static double getFractionAlongSegGroupLength(Cell cell, String segmentGroup, int segmentId, float fractAlongSegment) throws NeuroMLException - Throws:
NeuroMLException
-
main
- Throws:
Exception
-